private static boolean processTrustedFacetsList(TrustedFacetsList trustedFacetsList,Version version,String facetId){
  for (  TrustedFacets trustedFacets : trustedFacetsList.getTrustedFacets()) {
    if ((trustedFacets.getVersion().minor >= version.minor) && (trustedFacets.getVersion().major <= version.major)) {
      for (      String id : trustedFacets.getIds()) {
        if (id.equals(facetId)) {
          return true;
        }
      }
    }
  }
  return false;
}

private static boolean processTrustedFacetsList ( TrustedFacetsList trustedFacetsList , Version version , String facetId ) { for ( TrustedFacets trustedFacets : trustedFacetsList . getTrustedFacets ( ) ) { if ( ( trustedFacets . getVersion ( ) . minor >= version . minor ) && ( trustedFacets . getVersion ( ) . major <= version . major ) ) { for ( String id : trustedFacets . getIds ( ) ) { if ( id . equals ( facetId ) ) { return true ; } } } } return false ; }
from among the objects in the trustedfacet array , select the one with the version matching that of the protocol message version . the scheme of urls in ids must identify either an application identity ( e . g . using the apk : , ios : or similar scheme ) or an https : web origin [ rfc6454 ] . entries in ids using the https : / / scheme must contain only scheme , host and port components , with an optional trailing / . any path , query string , username / password , or fragment information must be discarded .
