private MDSSession createSession(MDSInstance instance) { SessionOptions sessionOptions = new SessionOptions( IsolationLevel.READ_COMMITTED, Locale.getDefault(), CustConfig.NO_CUSTOMIZATIONS); UserStateHandler userStateHandler = new UserStateHandler() { public Object getAttribute(String string) { return null; } public void setAttribute(String string, Object object) {} }; return instance.createSession(sessionOptions, userStateHandler); }