@Override
public Object lookup(FactoryInstance inst) {
Object instance = super.lookup(inst);
ServletContext servletContext = flex.messaging.FlexContext.getServletConfig().getServletContext();
ComponentPostProcessor postProcessor = (ComponentPostProcessor) servletContext.getAttribute(ComponentPostProcessor.class.getName());
if (postProcessor != null) {
postProcessor.postProcess(instance);
}
return instance;
}