package bridge; import java.io.FileOutputStream;import java.io.IOException;import java.io.ObjectOutputStream;import java.util.Collections;import java.util.List; public class AddFileCommand extends FileCommand { public AddFileCommand(String filename) { super(filename); } @Override public boolean Exec() { super.Exec(); try { FileOutputStream fout = new FileOutputStream(file); ObjectOutputStream oout = new ObjectOutputStream(fout); oout.writeObject(""); oout.close(); } catch (IOException e) { this.errMess = e.getMessage(); return false; } return true; } @Override public List GetGeneratedKeys() { return Collections.singletonList(file.getName()); } }