@Override
    public void registerEngineMimeType(final String type, final GremlinScriptEngineFactory factory) {
        if (null == type || null == factory) throw new NullPointerException();
        mimeTypeAssociations.put(type, factory);
    }
Registers a {@link GremlinScriptEngineFactory} to handle a mime type. Overrides any such association found using
the discovery mechanism.

@param type The mime type  to be associated with the {@link GremlinScriptEngineFactory}.
@param factory The class to associate with the given mime type.
@throws NullPointerException if any of the parameters is null.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/DefaultGremlinScriptEngineManager.java