class JcrWorkspace implements org.modeshape.jcr.api.Workspace {

    @Override
    public JcrQueryManager getQueryManager() throws RepositoryException {
        session.checkLive();
        if (this.queryManager == null) {
            try {
                lock.lock();
                if (queryManager == null) queryManager = new JcrQueryManager(session);
            } finally {
                lock.unlock();
            }
        }
        return queryManager;
    }

      JcrWorkspace( JcrSession session,
                  String workspaceName );

}