public static <V> V cloneObject(final V object) throws IOException, ClassNotFoundException {
        return (V) Serializer.deserializeObject(Serializer.serializeObject(object));
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/Serializer.java