</BUG>
int dim = 2;
for ( int series = 0; series < numSeries; ++series )
if ( r.getSizeZ() > 1 )
dim = 3;
<BUG>if ( IJ.debugMode )
IJ.log( "dim:  " + dim );
</BUG>
final MetadataRetrieve retrieve = service.asRetrieve(r.getMetadataStore());
<BUG>if ( IJ.debugMode )
IJ.log( "retrieve:  " + retrieve );
</BUG>
timeHack = numSeries == 1;

final OMEXMLService service = factory.getInstance( OMEXMLService.class );
final IMetadata meta = service.createOMEXMLMetadata();
r.setMetadataStore( meta );
r.setId( multiSeriesFile );
final int numSeries = r.getSeriesCount();
Log.debug( "numSeries:  " + numSeries );
int dim = 2;
for ( int series = 0; series < numSeries; ++series )
if ( r.getSizeZ() > 1 )
dim = 3;
Log.debug( "dim:  " + dim );
final MetadataRetrieve retrieve = service.asRetrieve(r.getMetadataStore());
Log.debug( "retrieve:  " + retrieve );
timeHack = numSeries == 1;
