public static IDatabaseReader createReaderFromFormat(String format) throws UnknownFormatException {
if (format.equalsIgnoreCase("dat")) {
return new DatDatabaseReader();
} else if (format.equalsIgnoreCase("edb")) {
return new EdbDatabaseReader();
}
throw new UnknownFormatException(format);
}