throw new IllegalArgumentException("Unknown processor: " + processor);
}
@Override
public void setEnvironment(final Environment environment) {
ResourcePreProcessor processor = getDecoratedObject();
if (processor instanceof EnvironmentAware) {
((EnvironmentAware) processor).setEnvironment(environment);
}
}