/** * This method tries to create a new and fully initialized BeanShell interpreter. * * @return the interpreter or null, if there was no way to create the interpreter. */ protected Interpreter createInterpreter() { try { final Interpreter interpreter = new Interpreter(); initializeInterpreter( interpreter ); return interpreter; } catch ( Throwable e ) { logger.warn( "Unable to initialize the expression", e ); //$NON-NLS-1$ return null; } }