this.config = config;
this.plinkProc = new PlinkProcessor(config);
if (config == null) {
throw new CRException("CONFIG", "Config is NULL => overthink your config!",
CRException.ERRORTYPE.FATAL_ERROR);
}
if (config.getPortalNodeCompMode()) {
//Servlet will run in portal.node compatibility mode => no velocity available
log.warn("CRRequestProcessor is running in Portal.Node 3 compatibility mode \n" + ""
+ "Therefore Velocity scripts will not work in the content.");
}
if (config.getBoolean(CONTENTCACHE_KEY, true)) {
try {
cache = JCS.getInstance("gentics-cr-" + config.getName() + "-crcontent");
log.debug("Initialized cache zone for \"" + config.getName() + "-crcontent\".");
} catch (CacheException e) {
log.warn("Could not initialize Cache for PlinkProcessor.");
throw new CRException(e);
}
}
}