public UserTokenPolicy findUserTokenPolicy(String policyId){
  if (UserIdentityTokens == null)   return null;
  for (  UserTokenPolicy policy : UserIdentityTokens)   if (policy != null) {
    final String p=policy.getPolicyId();
    if (p != null && p.equals(policyId))     return policy;
  }
  return null;
}

public UserTokenPolicy findUserTokenPolicy ( String policyId ) { if ( UserIdentityTokens == null ) return null ; for ( UserTokenPolicy policy : UserIdentityTokens ) if ( policy != null ) { final String p = policy . getPolicyId ( ) ; if ( p != null && p . equals ( policyId ) ) return policy ; } return null ; }
finds the user token policy with the specified id .
