public static boolean isPersistentNameID(final NameID nameId){
  boolean isPersistent=false;
  if (nameId == null) {
    return isPersistent;
  }
  String id=nameId.getFormat();
  if (id != null) {
    if (id.equalsIgnoreCase(SAML2Constants.PERSISTENT) || id.equalsIgnoreCase(SAML2Constants.UNSPECIFIED)) {
      isPersistent=true;
    }
  }
  if (debug.messageEnabled()) {
    debug.message("SAML2Utils:isPersistent : " + isPersistent);
  }
  return isPersistent;
}

public static boolean isPersistentNameID ( final NameID nameId ) { boolean isPersistent = false ; if ( nameId == null ) { return isPersistent ; } String id = nameId . getFormat ( ) ; if ( id != null ) { if ( id . equalsIgnoreCase ( SAML2Constants . PERSISTENT ) || id . equalsIgnoreCase ( SAML2Constants . UNSPECIFIED ) ) { isPersistent = true ; } } if ( debug . messageEnabled ( ) ) { debug . message ( "SAML2Utils:isPersistent : " + isPersistent ) ; } return isPersistent ; }
checks if it is a persistent request or not .
