// scan each subdirectory and try to build a mosaic in it, accumulate the resulting mosaics
List<MosaicInfo> mosaics = new ArrayList<MosaicInfo>();
ImageMosaicFormat mosaicFactory = new ImageMosaicFormat();
for (File subdir : directories) {
if(mosaicFactory.accepts(subdir, hints)) {
if(LOGGER.isLoggable(Level.FINE)){
LOGGER.fine("Trying to build mosaic for the directory:"+subdir.getAbsolutePath());
}
mosaics.add(new MosaicInfo(subdir, mosaicFactory.getReader(subdir, hints)));
} else {