GoF Design Pattern in Java Platform