code: public SessionImpl getSystemSession(String workspaceName) throws RepositoryException
     {
  
        if (getState() == OFFLINE)
        {
           LOG.warn("Repository " + getName() + " is OFFLINE.");
        }
  
        WorkspaceContainer workspaceContainer = repositoryContainer.getWorkspaceContainer(workspaceName);
        if (workspaceContainer == null || !workspaceContainer.getWorkspaceInitializer().isWorkspaceInitialized())
        {
           throw new RepositoryException("Workspace " + workspaceName + " not found or workspace is not initialized");
        }
  
        SessionFactory sessionFactory = workspaceContainer.getSessionFactory();
  
        return sessionFactory.createSession(authenticationPolicy.authenticate(SYSTEM_CREDENTIALS));
     }
docs: {@inheritDoc}