public static FileStore open(DataHandler handler, String name, String mode, String cipher, byte[] key, int keyIterations) {
FileStore store;
if (cipher == null) {
store = new FileStore(handler, name, mode);
} else {
store = new SecureFileStore(handler, name, mode, cipher, key, keyIterations);
}
return store;
}