public Map<ModelField,Set<Command>> process(ModelFactory modelFactory, Erector erector, Object model) throws PolicyException {
Map<ModelField,Set<Command>> modelFieldCommands = new HashMap<ModelField,Set<Command>>();
for ( ModelField modelField : erector.getModelFields() ) {
logger.debug( " {} {}", getTarget(), modelField);
if ( modelField.getName().equals( field ) ) {
Set<Command> commands = modelFieldCommands.get( modelField );
if ( commands == null ) {
commands = new HashSet<Command>();
}
commands.add( Command.SKIP_REFERENCE_INJECTION );
modelFieldCommands.put( modelField, commands );
}
}
return modelFieldCommands;
}
}