src/main/java/org/ucmtwine/proxy/injector/IdocScriptInjector.java
@Override
  public void inject(Class<?> klass) throws DataException, ServiceException {

    // loads function def table from annotated class
    ScriptExtensions extensions = new ScriptProxy(klass);

    // load func def table and set parent to the default script context
    ScriptContext defaultScriptContext = (ScriptContext) AppObjectRepository.getObject("DefaultScriptContext");
    extensions.load(defaultScriptContext);

    // register these extensions
    defaultScriptContext.registerExtension(extensions);
  }
@Override
  public void inject(Class<?> klass) throws DataException, ServiceException {

    // loads function def table from annotated class
    ScriptExtensions extensions = new ScriptProxy(klass);

    // load func def table and set parent to the default script context
    ScriptContext defaultScriptContext = (ScriptContext) AppObjectRepository.getObject("DefaultScriptContext");
    extensions.load(defaultScriptContext);

    // register these extensions
    defaultScriptContext.registerExtension(extensions);
  }
{@inheritDoc}