try {
ConfigurationContext configurationContext =
MessageContext.getCurrentMessageContext().getConfigurationContext();
cx.putThreadLocal(MashupConstants.AXIS2_CONFIGURATION_CONTEXT, configurationContext);
AxisService service = new AxisService();
service.addParameter(MashupConstants.MASHUP_AUTHOR, CurrentSession.getUser());
cx.putThreadLocal(MashupConstants.AXIS2_SERVICE, service);
Scriptable scope = cx.initStandardObjects();
ScriptableObject.defineClass(scope, ResourceHostObject.class);
ScriptableObject.defineClass(scope, CollectionHostObject.class);
ScriptableObject.defineClass(scope, RegistryHostObject.class);