GSon example downported to Java 7