{
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if ( classLoader == null )
{
throw new ResourceNotFoundException( name );
}
if ( name != null && name.startsWith( "/" ) )
{
name = name.substring( 1 );
}
final URL url = classLoader.getResource( name );
if ( url == null )
{
throw new ResourceNotFoundException( name );
}
return new URLPlexusResource( url );
}