mods = (ModificationItem[]) transform.map(input, env);
else if (operations != null) {
/* defined operations */
mods = (ModificationItem[]) operations.map(null, env);
} else
throw new MapperException(getName()
+ ": No transformation defined");
if (log.isDebugEnabled())
log.debug("[" + getName() + "] modifiying " + _root + " with "
+ input);
directory.modifyAttributes(_root, mods);
if (log.isDebugEnabled())
log.debug("[" + getName() + "] done");
} catch (NamingException ne) {
throw new speculoos.core.MapperException(
"Error in modification operation", ne);
} catch (ClassCastException e) {
throw new MapperException(getName() + ": invalid input type "
+ input.getClass() + ", expected ModificationItem[]");
}
return input;
}