docs: public RemoteLockSession getRemoteLockSession(SessionInfo sessionInfo)
      {
          if (m_lockServer == null)
          {   // Haven't done any locks yet, hook up with the lock server.
              Application app = (Application)((Environment)m_owner).getDefaultApplication();
              if (m_gbRemoteTaskServer)
              {
                  String strServer = app.getAppServerName();
                  String strRemoteApp = DBParams.DEFAULT_REMOTE_LOCK;
                  String strUserID = null;
                  String strPassword = null;
                  m_lockServer = (RemoteTask)app.createRemoteTask(strServer, strRemoteApp, strUserID, strPassword);
              }
              if (m_lockServer == null)
              {
                  m_gbRemoteTaskServer = false;
                  try {
                      m_lockServer = new org.jbundle.base.remote.db.TaskSession(app);
                  } catch (RemoteException ex)    {
                      ex.printStackTrace();
                  }
              }
          }
          RemoteLockSession remoteLockSession = (RemoteLockSession)sessionInfo.m_remoteLockSession;
          if (remoteLockSession == null)
          {   // Setup the remote lock server
              try {
                  if (m_gbRemoteTaskServer)
                  {
                      remoteLockSession = (RemoteLockSession)m_lockServer.makeRemoteSession(LockSession.class.getName());
                  }
                  else
                  {
                      remoteLockSession = new LockSession((org.jbundle.base.remote.db.TaskSession)m_lockServer);
                  }
                  sessionInfo.m_remoteLockSession = remoteLockSession;
              } catch (RemoteException ex)    {
                  ex.printStackTrace();
              }
          }
          return remoteLockSession;
      }