/** * Invoked at object creation, or when there are updates to class files (i.e., invalidation), to create a new set of * Javassist class pools and loaders. */ private void initializeService() { PlasticManagerBuilder builder = PlasticManager.withClassLoader(parent).delegate(this) .packages(controlledPackageNames); if (!productionMode) { builder.enable(TransformationOption.FIELD_WRITEBEHIND); } manager = builder.create(); manager.addPlasticClassListener(this); proxyFactory = new PlasticProxyFactoryImpl(manager, logger); classToInstantiator.clear(); classToModel.clear(); }