Design Pattern in Java: Prototype