Prototype Pattern in Java