final OMEXMLService service = factory.getInstance( OMEXMLService.class );
final IMetadata meta = service.createOMEXMLMetadata();
r.setMetadataStore( meta );
r.setId( filename );
final int numSeries = r.getSeriesCount();
<BUG>if ( IJ.debugMode )
IJ.log( "numSeries:  " + numSeries );
</BUG>
if ( numSeries == 1 )
{

final OMEXMLService service = factory.getInstance( OMEXMLService.class );
final IMetadata meta = service.createOMEXMLMetadata();
r.setMetadataStore( meta );
r.setId( filename );
final int numSeries = r.getSeriesCount();
Log.debug( "numSeries:  " + numSeries );
if ( numSeries == 1 )
{
