question: @ 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 ; }
target:  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.