// DocumentDatabase.init(Startup);
// Use the DocumentReader to allow the DocumentDatabase to recognize
// sidecar JPEG, sidecar TIFF, and multilayer TIFF save formats:
DocumentDatabase.addDocumentInterpreter(
new DocumentInterpreter() {
public File getImageFile(File file) {
DocumentReader.Interpretation interp =
DocumentReader.read(file);
return (interp != null) ? interp.imageFile : null;
}