compilationError = e.getLocalizedMessage();
log.debug("Compilation exception", e);
}
if(newDynamicClass != null) {
InvocationHandler handler = new DynamicCodeInvocationHandler(newDynamicClass);
DynamicRuntimeCode proxy = (DynamicRuntimeCode) Proxy.newProxyInstance(DynamicRuntimeCode.class.getClassLoader(), new Class[]{DynamicRuntimeCode.class}, handler);
try {
log.debug("Invoking Dynamic Class");
String runtimeResponse = proxy.doCode(applicationContext, request, response);
log.debug("Class call completed");