code: public CasServerProfile getProfile() {
          val profile = new CasServerProfile();
          profile.setRegisteredServiceTypesSupported(locateRegisteredServiceTypesSupported());
          profile.setRegisteredServiceTypes(locateRegisteredServiceTypesActive());
          profile.setMultifactorAuthenticationProviderTypesSupported(locateMultifactorAuthenticationProviderTypesSupported());
          profile.setMultifactorAuthenticationProviderTypes(locateMultifactorAuthenticationProviderTypesActive());
          profile.setDelegatedClientTypesSupported(locateDelegatedClientTypesSupported());
          profile.setDelegatedClientTypes(locateDelegatedClientTypes());
          profile.setAvailableAttributes(this.availableAttributes);
          return profile;
      }
docs: Gets profile.
  
  @return the profile