private boolean passPackageNameFilter(String resourceName){
  for (  String context : packageWhitelist) {
    if (resourceName.startsWith(context)) {
      return true;
    }
  }
  return false;
}

private boolean passPackageNameFilter ( String resourceName ) { for ( String context : packageWhitelist ) { if ( resourceName . startsWith ( context ) ) { return true ; } } return false ; }
determine if the named resource is included in any of the whitelisted packages .
