code: public boolean isWorkspaceInitialized() throws RepositoryException
     {
        try
        {
           // If someone invoke isWorkspaceInitialized() during restore action then NullNodeData for root node will be pushed
           // into the cache and will be there even restore is finished and data will be placed into DB.
           return !isRestoreInProgress && dataManager.getItemData(Constants.ROOT_UUID) != null;
        }
        catch (RepositoryException e)
        {
           throw new RepositoryException("Cannot check if the workspace '" + workspaceName
              + "' has already been initialized", e);
        }
     }
docs: {@inheritDoc}