XtextResourceSet.getResource(URI uri, boolean loadOnDemand) overrides ResourceSet.getResource(URI, boolean), presumably because of the 'URI normalization' which I think was added because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=399771.
Contrary to ResourceSet.getResource though, XtextResourceSet.getResource never places the result of demandLoadHelper in the map obtained from getURIResourceMap(). As a consequence, the Resource can never be obtained from the map, so demandLoadHelper keeps getting called.
XtextResourceSet.getResource(URI uri, boolean loadOnDemand) overrides ResourceSet.getResource(URI, boolean), presumably because of the 'URI normalization' which I think was added because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=399771.
Contrary to ResourceSet.getResource though, XtextResourceSet.getResource never places the result of demandLoadHelper in the map obtained from getURIResourceMap(). As a consequence, the Resource can never be obtained from the map, so demandLoadHelper keeps getting called.