private void registerLookUpInfo(final GremlinScriptEngine engine, final String shortName) {
        if (null == engine) throw new IllegalArgumentException(String.format("%s is not an available GremlinScriptEngine", shortName));
        cache.putIfAbsent(shortName, engine);
        engine.getFactory().getExtensions().forEach(ext -> extensionToName.putIfAbsent(ext, shortName));
        engine.getFactory().getMimeTypes().forEach(mime -> mimeToName.putIfAbsent(mime, shortName));
    }
Gets a {@link GremlinScriptEngine} from cache or creates a new one from the {@link GremlinScriptEngineFactory}.
<p/>
{@inheritDoc}
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/CachedGremlinScriptEngineManager.java