public void add(String workspace, String mosaicName, File tiff, String crs, double bbox[], String style, String datastorePath) throws SecurityException, ActionException, IOException {
if ( ! tiff.exists())
throw new FileNotFoundException("TIF file not found: "+tiff);
ImageMosaicCommand imageMosaicCommand = new ImageMosaicCommand(mosaicDir, Arrays.asList(tiff), Collections.EMPTY_LIST);
File commandFile = File.createTempFile("mosaicCommand_", ".xml", tempDir);
ImageMosaicCommand.serialize(imageMosaicCommand, commandFile.getAbsolutePath());
ImageMosaicConfiguration imageMosaicConfiguration = new ImageMosaicConfiguration("ImageMosaic", "Configuring mosaic", null);