final TransformerHandler handler = m_factory.newTransformerHandler( template );
handler.getTransformer().setErrorListener( m_errorHandler );
handler.getTransformer().setURIResolver( this );
// Create aggregated validity
AggregatedValidity aggregated = null;
if( validity != null && m_checkIncludes)
{
List includes = (List)m_includesMap.get( id );
if( includes != null )
{
aggregated = new AggregatedValidity();
aggregated.add( validity );
for( int i = includes.size() - 1; i >= 0; i-- )
{
aggregated.add( (SourceValidity)( (Object[])includes.get( i ) )[ 1 ] );
}
validity = aggregated;
}
}