public static String getAuthenticatorIdPMappingString(List<AuthenticatorConfig> authConfigList) {

    StringBuilder authenticatorIdPStr = new StringBuilder("");

    for (AuthenticatorConfig authConfig : authConfigList) {
      StringBuilder idpsOfAuthenticatorStr = new StringBuilder("");

      for (String idpName : authConfig.getIdpNames()) {

        if (idpName != null) {

          if (idpsOfAuthenticatorStr.length() != 0) {
            idpsOfAuthenticatorStr.append(":");
          }

          IdentityProvider idp = authConfig.getIdps().get(idpName);

          if (idp.isFederationHub()) {
            idpName += ".hub";
          }

          idpsOfAuthenticatorStr.append(idpName);
        }
      }

      if (authenticatorIdPStr.length() != 0) {
        authenticatorIdPStr.append(";");
      }

      authenticatorIdPStr.append(authConfig.getName()).append(":").append(idpsOfAuthenticatorStr);
    }

    return authenticatorIdPStr.toString();
  }
 public boolean isFederationHubIdP() {
   return identityProvider.isFederationHub();
 }