Resource resource = this.resourceManager.findResource(path);
return resource;
}
public void onResourcesModified(Function callback, Scriptable thisObj) {
final WatchListener listener = this.createWatchListener(callback, thisObj);
this.resourceManager.addListener(new ResourcesListener() {
@Override
public void onResourcesModified() {
listener.notifyModified(null);
}
});
}