/wro4j-core/src/main/java/ro/isdc/wro/manager/callback/LifecycleCallbackRegistry.java
if ( callbacks == null ) { callbacks = initCallbacks ( ) ; map.put ( key, callbacks ) ; }
public void registerCallback(final ObjectFactory<LifecycleCallback> callbackFactory) { callbackFactoryList.add(callbackFactory); } private List<LifecycleCallback> getCallbacks() { final String key = Context.getCorrelationId(); List<LifecycleCallback> callbacks = map.get(key); <extra_id_0> return callbacks; } protected List<LifecycleCallback> initCallbacks() { final List<LifecycleCallback> callbacks = new ArrayList<LifecycleCallback>(); for (final ObjectFactory<LifecycleCallback> callbackFactory : callbackFactoryList) { callbacks.add(callbackFactory.create());