code: @Override
      public RepositoryInfo describeRepository(Context context)
              throws ServerException {
          m_authorizationModule.enforceDescribeRepository(context);
          RepositoryInfo repositoryInfo = new RepositoryInfo();
          repositoryInfo.repositoryName =
                  getServer().getParameter("repositoryName");
          String reposBaseURL =
                  getReposBaseURL(context
                                          .getEnvironmentValue(Constants.HTTP_REQUEST.SECURITY.attributeId)
                                          .equals(Constants.HTTP_REQUEST.SECURE.uri) ? "https"
                                                                                     : "http",
                                  context
                                          .getEnvironmentValue(Constants.HTTP_REQUEST.SERVER_PORT.attributeId));
          repositoryInfo.repositoryBaseURL =
                  reposBaseURL + "/" + context.getEnvironmentValue(Constants.FEDORA_APP_CONTEXT_NAME);
  
          repositoryInfo.repositoryVersion = Server.VERSION;
          Module domgr = getServer().getModule("org.fcrepo.server.storage.DOManager");
          repositoryInfo.repositoryPIDNamespace =
                  domgr.getParameter("pidNamespace");
          repositoryInfo.defaultExportFormat =
                  domgr.getParameter("defaultExportFormat");
          repositoryInfo.OAINamespace = m_repositoryDomainName;
          repositoryInfo.adminEmailList = getAdminEmails();
          repositoryInfo.samplePID =
                  repositoryInfo.repositoryPIDNamespace + ":100";
          repositoryInfo.sampleOAIIdentifer =
                  "oai:" + repositoryInfo.OAINamespace + ":"
                  + repositoryInfo.samplePID;
          repositoryInfo.sampleSearchURL =
                  repositoryInfo.repositoryBaseURL + "/objects";
          repositoryInfo.sampleAccessURL =
                  repositoryInfo.repositoryBaseURL + "/objects/" + "demo:5"; // PID should be URL-encoded, but nothing to encode in this case
          repositoryInfo.sampleOAIURL =
                  repositoryInfo.repositoryBaseURL + "/oai?verb=Identify";
          repositoryInfo.retainPIDs = getRetainPIDs();
          return repositoryInfo;
      }
docs: <p>
  Gets information that describes the repository.
  </p>
  
  @param context
  the context of this request
  @return information that describes the repository.
  @throws ServerException
  If any type of error occurred fulfilling the request.