-// public static SessionContext openSession(IServerAddress info, UserAuthenticationAgent auth) throws IOException, DatabaseException {
-// return new SessionContext(info, auth, false);
-// }
-//
-// public static SessionContext openAndInitializeSession(IServerAddress info, UserAuthenticationAgent auth) throws IOException, DatabaseException {
-// return new SessionContext(info, auth, true);
-// }
-
- private static SessionReference createSessionReference(/*IServerAddress address,*/ long sessionId) throws InternalException {
- ProCoreServerReference server = new ProCoreServerReference();
- ProCoreSessionReference ref = new ProCoreSessionReference(server, sessionId);
- return ref;
- }
-
-// private SessionContext(IServerAddress addr, UserAuthenticationAgent auth, boolean initialize) throws IOException, DatabaseException {
-// if (addr == null)
-// throw new IllegalArgumentException("null address");
-//// this.address = addr;
-// this.authenticator = auth;
-//
-// SessionManager sessionManager = SessionManagerProvider.getInstance().getSessionManager();
-//
-// if (initialize) {
-// initializeSession(sessionManager);
-// if (SESSION_DEBUG) {
-// System.err.println("Initialized session: " + addr);
-// System.err.flush();
-// }
-// } else {
-// SessionReference ref = createSessionReference(SessionManagerSource.NullSessionId);
-// this.session = sessionManager.createSession(ref, auth);
-// if (SESSION_DEBUG) {
-// System.err.println("Opened session: " + addr);
-// System.err.flush();
-// }
-// }
-//
-// }
-