code: @Override
      public void init(ServletConfig config) throws ServletException {
          super.init(config);
          try {
              fedoraServerPort = m_server.getParameter("fedoraServerPort");
              fedoraServerRedirectPort =
                      m_server.getParameter("fedoraRedirectPort");
              fedoraServerHost = m_server.getParameter("fedoraServerHost");
              m_manager =
                      (DOManager) m_server
                              .getModule("org.fcrepo.server.storage.DOManager");
              String expireLimit =
                      m_server.getParameter("datastreamMediationLimit");
              if (expireLimit == null || expireLimit.equalsIgnoreCase("")) {
                  logger.info("datastreamMediationLimit unspecified, using default "
                          + "of 5 seconds");
                  datastreamMediationLimit = 5000;
              } else {
                  datastreamMediationLimit = Integer.parseInt(expireLimit);
                  logger.info("datastreamMediationLimit: {}",
                          datastreamMediationLimit);
              }
          } catch (Throwable th) {
              logger.error("Error initializing servlet", th);
          }
      }
docs: Initialize servlet.
  
  @throws ServletException
  If the servlet cannot be initialized.