code: public void register(RegistrationRequest registrationRequest) throws RegistrationException {
          if (!registrationRequest.getEnrollmentID().equals(getName())) {
              throw new RuntimeException("registration enrollment ID and member name are not equal");
          }
  
          this.enrollmentSecret = memberServices.register(registrationRequest, chain.getRegistrar());
          this.saveState();
      }
docs: Register the member.
  @param registrationRequest the registration request
  @throws RegistrationException