if (isClosed()) return null; if ((name.length() > 1) && (name.charAt(0) == '/'))  name = name.substring(1);  createClassLoader();  if (parent != null) { if (Framework.STRICT_DELEGATION) { if (name.startsWith(JAVA_RESOURCE))  return parent.getResource(name); } else { URL result = parent.getResource(name); if (result != null) return result; } } String pkgName = getResourcePackageName(name); URL result = null; PackageSource source = findImportedSource(pkgName); if (source != null) result = source.getResource(name); else { source = findRequiredSource(pkgName); if (source != null) result = source.getResource(name); if (result == null) result = findLocalResource(name); } return result;
return findResource(name, true);
	public URL findResource(String name) {		if (isClosed())			return null;		if ((name.length() > 1) && (name.charAt(0) == '/')) /* if name has a leading slash */			name = name.substring(1); /* remove leading slash before search */		createClassLoader(); // make sure the classloader is created		// First check the parent classloader for system resources, if it is a java resource.		if (parent != null) {			if (Framework.STRICT_DELEGATION) {				if (name.startsWith(JAVA_RESOURCE))					// we never delegate java resource requests past the parent					return parent.getResource(name);			} else {				URL result = parent.getResource(name);				if (result != null)					return result;			}		}		String pkgName = getResourcePackageName(name);		URL result = null;		PackageSource source = findImportedSource(pkgName);		if (source != null)			result = source.getResource(name);		else {			source = findRequiredSource(pkgName);			if (source != null)				result = source.getResource(name);			if (result == null)				result = findLocalResource(name);		}		return result;	}