Gtnportal 3510.2

GTNPORTAL-3510 Possible memory leaks, consistency issues and concurrency issues in ScriptGraph
+1, I also improved the method JavaDoc:
```
     * Adds the entities provided in the given {@link ScriptResources} to this
     * {@link JavascriptConfigService}.
     *
     * {@link InvalidResourceException} is thrown if the addition of the given {@code scriptResources}
     * would break the internal consistency of this {@link JavascriptConfigService}. See the
     * documentation of the following methods to see which specific conditions are illegal:
     * {@link StaticScriptResources#add(Collection)}, {@link PathMappings#add(String, Map)}
     * and {@link ScriptGraph#add(String, List)}.
     *
     * In case this method throws an {@link InvalidResourceException}, the the internal state of
     * this {@link JavascriptConfigService} stays as it was before the invocation of this method.
     *
     * @param scriptResources entities to add to this {@link JavascriptConfigService}
     * @throws InvalidResourceException see above.
```