@@ -0,0 +1,1652 @@
+package Memento;%0A%0Aimport BuilderPattern.Reservation;%0Aimport FactoryMethod.Customer;%0Aimport java.io.*;%0A%0Apublic class Originator %7B%0A     %0A    private Customer customer;%0A    private Reservation reservation;%0A%0A    %0A    public Originator()%7B%0A%0A%09%7D%0A%0A    public void setCustomer(Customer customer) %7B%0A        this.customer = customer;%0A    %7D%0A    %0A    public void setReservation(Reservation reservation) %7B%0A        this.reservation = reservation;%0A    %7D%0A%0A    %0A    public Customer getCustomer() %7B%0A        return this.customer;%0A    %7D%0A    %0A    public Reservation getReservation() %7B%0A        return this.reservation;%0A    %7D%0A%0A    %0A    public void saveFileMemento(File f)%0A    %7B%0A        try%0A        %7B%0A            Memento memento = new Memento(customer,reservation);%0A%0A            if (!f.exists()) %0A            %7B%0A              f.createNewFile();                 %0A            %7D %0A            try (ObjectOutputStream outStream = new ObjectOutputStream(new FileOutputStream(f))) %7B%0A                outStream.writeObject(memento);%0A                outStream.flush();%0A            %7D%0A        %7D%0A        catch (IOException e)%0A        %7B%0A        %7D%0A%0A    %7D%0A    %0A    public Memento createNewMemento()%7B%0A        %0A      return new Memento(customer,reservation);%0A%0A    %7D%0A%0A%0A    public void loadMemento(File f) throws FileNotFoundException%0A    %7B%0A    try%0A        %7B%0A            ObjectInputStream input = new ObjectInputStream(new FileInputStream(f));%0A            Memento memento = (Memento)input.readObject();%0A            this.customer = memento.customer;%0A            this.reservation = memento.reservation;%0A        %7D%0A        catch(IOException %7C ClassNotFoundException ex)%0A        %7B%0A        %7D%0A%0A    %7D    %0A%7D%0A

Create Originator.java