protected String describe(final ServiceFactory service) {
        final Map description = new LinkedHashMap();
        description.put("name", service.getName());
        final Map<Type,Set<TraverserRequirement>> types = new LinkedHashMap<>();
        for (Type type : (Set<Type>) service.getSupportedTypes()) {
            types.put(type, service.getRequirements(type));
        }
        description.put("type:[requirements]:", types);
        description.put("params", service.describeParams());

        final ObjectMapper om = new ObjectMapper();
        try {
            return om.writeValueAsString(description);
        } catch (JsonProcessingException ex) {
            return description.toString();
        }
    }
Provide a service description for the supplied service.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/service/ServiceRegistry.java