public static boolean checkIfCanInstrument(String className){
  for (  String s : getPackagesShouldNotBeInstrumented()) {
    if (className.startsWith(s)) {
      return false;
    }
  }
  return true;
}

public static boolean checkIfCanInstrument ( String className ) { for ( String s : getPackagesShouldNotBeInstrumented ( ) ) { if ( className . startsWith ( s ) ) { return false ; } } return true ; }
check if we can instrument the given class
