if(scriptEngine == null) {
throw new IllegalArgumentException("scriptEngine should not be null");
}
if(EmailListenerNamespace.NAME.equals(feature)) {
scriptEngine.addExtension(EmailListenerNamespace.NAME, new EmailListenerNamespace(new EmailListenerManager()));
}
}