//there should not be any Class-Path entry.
com.sun.enterprise.tools.verifier.apiscan.packaging.ExtensionRef[] extRefs=jar.getExtensionRefs();
com.sun.enterprise.tools.verifier.apiscan.packaging.Archive[] allOptPkgs=com.sun.enterprise.tools.verifier.apiscan.packaging.Archive.getAllOptPkgsInstalledInJRE();
ArrayList<ExtensionRef> notFounds=new ArrayList<ExtensionRef>();
for(int i=0;i<extRefs.length;++i){
ExtensionRef ref=extRefs[i];
boolean found=false;
for(int j=0;j<allOptPkgs.length;++j){
if(ref.isSatisfiedBy(allOptPkgs[j])) {
found=true;
break;
}
}
if(!found) notFounds.add(ref);