isRtClass(refclass))
isRtClass(refclass) && BundleVerifier.Instance().getDepsClasses(). getClassImports(refclass) != null)
    public void parseBundle(String jarfile)    {        // clean up for a new parse        importSet.clear();        exportSet.clear();        activatorSet.clear();        try        {            JarFile file = new JarFile(new File(jarfile));            // mainloop over all classes in the jar            for (Enumeration en = file.entries(); en.hasMoreElements();)            {                JarEntry entry = (JarEntry) en.nextElement();                if (entry.getName().endsWith(".class"))                {                    // get the classname                    String clname = entry.getName().replaceAll("/", ".");                    clname = clname.substring(0, clname.indexOf(".class"));//                    System.out.println(clname +" index: "+ clname.lastIndexOf("."));                                        // packagename                    int indexpkg;                    if ((indexpkg = clname.lastIndexOf(".")) > 0)                    {                        String pkg = clname.substring(0, indexpkg);                        exportSet.add(pkg);                    }                    if (!thirdparty)                    {                        boolean impls = bverifier.getDepsClasses()                                .doesImplementActivatorBundle(clname);                        if (impls)                        {                            activatorSet.add(clname);                                                    }                    }                    Collection classes = bverifier.getDepsClasses()                            .getClassImports(clname);                    if (classes == null)                        continue;                    for (Iterator it = classes.iterator(); it.hasNext();)                    {                        String refclass = (String) it.next();                        // check if the class is not of a system class                        // (cdc-minimum, foundation) and                        // not in the same jar file                        //tocheckimports.add(refclass);                        if (!BundleVerifier.Instance().getRtClasses().                                isRtClass(refclass))                        {                        	//System.out.println(refclass);                        	int index = refclass.lastIndexOf(".");                        	String imppkg = "";                        	if (index > -1)                        	{                        		imppkg = refclass.                            	substring(0, refclass.lastIndexOf("."));                        	//                            System.out.println("import candidate: " + imppkg);                                                    		importSet.add(imppkg);                        	}                        }                                          }                }            }            file.close();            // Generate extended OBR File                       generateOBR(new File(jarfile));                             // remove now from the importSet the ones which are included            // in the bundle itself            for (Iterator it = exportSet.iterator(); it.hasNext();)            {                importSet.remove(it.next());            }        } catch (IOException e)        {            e.printStackTrace();        }            }