private static ManifestInfo getManifestInfo() throws IOException {
        Enumeration resEnum;
        resEnum = Thread.currentThread().getContextClassLoader().getResources("META-INF/MANIFEST.MF"); //$NON-NLS-1$
        while (resEnum.hasMoreElements()) {
            try {
                URL url = (URL)resEnum.nextElement();
                InputStream is = url.openStream();
                if (is != null) {
                    ManifestInfo result = new ManifestInfo();
                    Manifest manifest = new Manifest(is);
                    Attributes mainAttribs = manifest.getMainAttributes();
                    result.rsrcMainClass = mainAttribs.getValue("Rsrc-Main-Class"); //$NON-NLS-1$
                    String rsrcCP = mainAttribs.getValue("Rsrc-Class-Path"); //$NON-NLS-1$
                    if (rsrcCP == null)
                        rsrcCP = ""; //$NON-NLS-1$
                    result.rsrcClassPath = splitSpaces(rsrcCP);
                    if ((result.rsrcMainClass != null) && !result.rsrcMainClass.trim().equals(""))  //$NON-NLS-1$
                            return result;
                }
            }
            catch (Exception e) {
                // Silently ignore wrong manifests on classpath?
            }
        }
        System.err.println("Missing attributes for RsrcLoader in Manifest (Rsrc-Main-Class, Rsrc-Class-Path)"); //$NON-NLS-1$
        return null;
    }