ClassRealm sourceRealm = getRealm().locateSourceRealm( name );
if ( sourceRealm != getRealm() )
{
// Attempt to load directly first, then go to the imported packages.
for ( Enumeration res = sourceRealm.findResources( name ); res.hasMoreElements(); )
{
resources.addElement( res.nextElement() );
}
}