static void safeWriteObjectField(final JsonGenerator jsonGenerator, final String key, final Object value) {
        try {
            jsonGenerator.writeObjectField(key, value);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
Utility methods for GraphSON serialization. Functions in here might be used by external serializers.

@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtil.java