@Override
        public ToyTriangle createObject(final Map<String, Object> map) {
            return new ToyTriangle((int) map.get("x"), (int) map.get("y"), (int) map.get("z"));
        }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/ToyTriangle.java