public boolean rejectByDefault(String className){
  if (className == null) {
    return true;
  }
  if (className.startsWith("net.sf.profiler4j.test.")) {
    return false;
  }
  if (className.startsWith("[") || className.startsWith("net.sf.profiler4j.agent.") || className.startsWith("java.util.")|| className.startsWith("java.lang.")|| className.startsWith("java.lang.Thread")|| className.startsWith("java.lang.reflect.")|| className.startsWith("java.lang.ref.")|| className.equals("com.sun.tools.javac.util.DefaultFileManager")|| className.startsWith("sun.security.")|| className.startsWith("java.security.MessageDigest$")|| className.startsWith("sun.reflect.")|| className.startsWith("$Proxy")|| className.contains("ByCGLIB$$")) {
    return true;
  }
  if (config.getExclusions() != null) {
    for (    String cn : config.getExclusions()) {
      if (className.startsWith(cn)) {
        return true;
      }
    }
  }
  return false;
}

public boolean rejectByDefault ( String className ) { if ( className == null ) { return true ; } if ( className . startsWith ( "net.sf.profiler4j.test." ) ) { return false ; } if ( className . startsWith ( "[" ) || className . startsWith ( "net.sf.profiler4j.agent." ) || className . startsWith ( "java.util." ) || className . startsWith ( "java.lang." ) || className . startsWith ( "java.lang.Thread" ) || className . startsWith ( "java.lang.reflect." ) || className . startsWith ( "java.lang.ref." ) || className . equals ( "com.sun.tools.javac.util.DefaultFileManager" ) || className . startsWith ( "sun.security." ) || className . startsWith ( "java.security.MessageDigest$" ) || className . startsWith ( "sun.reflect." ) || className . startsWith ( "$Proxy" ) || className . contains ( "ByCGLIB$$" ) ) { return true ; } if ( config . getExclusions ( ) != null ) { for ( String cn : config . getExclusions ( ) ) { if ( className . startsWith ( cn ) ) { return true ; } } } return false ; }
checks whether a class should be simply ignored by the profiler in every possible situation .
