docs: public SecurityHandler getObject() throws Exception {
          ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();
          securityHandler.setAuthenticator(authenticator);
          securityHandler.setRealmName(realm);
  
          for (Entry<String, Constraint> constraint : constraints.entrySet()) {
              ConstraintMapping constraintMapping = new ConstraintMapping();
              constraintMapping.setConstraint(constraint.getValue());
              constraintMapping.setPathSpec(constraint.getKey());
  
              securityHandler.addConstraintMapping(constraintMapping);
          }
  
          securityHandler.setLoginService(loginService);
  
          return securityHandler;
      }