@Override public boolean containsClass(String className) throws IOException {
  boolean containsClass=false;
  String resourceName="WEB-INF/classes/" + className.replace('.','/') + ".class";
  if (getResource(resourceName) != null) {
    containsClass=true;
  }
  for (  String resource : getResources("WEB-INF/lib/")) {
    JarArchive jar=new DefaultJarArchive(getResource(resource));
    if (jar.containsClass(className)) {
      containsClass=true;
    }
  }
  return containsClass;
}

@ Override public boolean containsClass ( String className ) throws IOException { boolean containsClass = false ; String resourceName = "WEB-INF/classes/" + className . replace ( '.' , '/' ) + ".class" ; if ( getResource ( resourceName ) != null ) { containsClass = true ; } for ( String resource : getResources ( "WEB-INF/lib/" ) ) { JarArchive jar = new DefaultJarArchive ( getResource ( resource ) ) ; if ( jar . containsClass ( className ) ) { containsClass = true ; } } return containsClass ; }
returns whether a class of the specified name is contained in the web - app archive , either directly in web - inf / classes , or in one of the jars in web - inf / lib .
