@Override
        public Map<Class, String> getTypeDefinitions() {
            return new HashMap<Class, String>() {{
                put(ToyPoint.class, "ToyPoint");
                put(ToyTriangle.class, "ToyTriangle");
            }};
        }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/ToyIoRegistry.java