protected InputStream findClassContent ( String className ) throws IOException { String primaryArtifactEntryName = "WEB-INF/classes/" + className . replace ( ' ' , ' ' ) + ".class" ; String dependencyEntryName = className . replace ( ' ' , ' ' ) + ".class" ; ZipEntry entry = this . pluginArtifactZip . getEntry ( primaryArtifactEntryName ) ; if ( entry != null ) { return this . pluginArtifactZip . getInputStream ( entry ) ; } for ( ZipFile zipFile : this . dependencyZips ) { entry = zipFile . getEntry ( dependencyEntryName ) ; if ( entry != null ) { return zipFile . getInputStream ( entry ) ; } } return null ; }
Searches the plugin artifact ZIP and all dependency ZIPs for a zip entry for the given fully qualified class name .