Requirement requirement = item.getRequirement();
if (requirement instanceof PackageRequirement)
{
PackageRequirement pr = (PackageRequirement) requirement;
ClassFilter filter = PackageClassFilter.createPackageClassFilter(pr.getName());
return new FilteredDelegateLoader(factory, filter);
}
else
{
return new LazyFilteredDelegateLoader(factory);
}