protected ClassLoaderSetMetaData buildFromStream( final InputStream stream )
throws Exception
{
try
{
final ClassLoaderSetReader builder = new ClassLoaderSetReader();
final Document config = load( stream );
return builder.build( config.getDocumentElement() );
}
catch( final Exception e )
{
fail( "Error building ClassLoaderSet: " + e );
return null;