private Collection<URL> getLibertyBootManifests(Set<String> libertyBootSymbolicNames) throws IOException {
        Collection<URL> result = new ArrayList<URL>();
        ClassLoader cl = KernelResolver.class.getClassLoader();
        Enumeration<URL> classpathManifests = cl.getResources("META-INF/MANIFEST.MF");
        while (classpathManifests.hasMoreElements()) {
            URL manifestURL = classpathManifests.nextElement();
            Manifest manifest = new Manifest(manifestURL.openStream());
            Attributes attr = manifest.getMainAttributes();
            String bsn = attr.getValue(BUNDLE_SYMBOLICNAME);
            if (bsn != null) {
                String[] bsnElements = bsn.split(";");
                if (libertyBootSymbolicNames.contains(bsnElements[0])) {
                    result.add(manifestURL);
                }
            }
        }

        return result;

    }
private Collection < URL > getLibertyBootManifests ( Set < String > libertyBootSymbolicNames ) throws IOException { Collection < URL > result = new ArrayList < URL > ( ) ; ClassLoader cl = KernelResolver . class . getClassLoader ( ) ; Enumeration < URL > classpathManifests = cl . getResources ( "META-INF/MANIFEST.MF" ) ; while ( classpathManifests . hasMoreElements ( ) ) { URL manifestURL = classpathManifests . nextElement ( ) ; Manifest manifest = new Manifest ( manifestURL . openStream ( ) ) ; Attributes attr = manifest . getMainAttributes ( ) ; String bsn = attr . getValue ( BUNDLE_SYMBOLICNAME ) ; if ( bsn != null ) { String [ ] bsnElements = bsn . split ( ";" ) ; if ( libertyBootSymbolicNames . contains ( bsnElements [ 0 ] ) ) { result . add ( manifestURL ) ; } } } return result ; }
@param libertyBootSymbolicNames
@return
@throws IOException