This changes the code to behave like it did before commit
1dfeb7d5 as
intended.
refs #7719
Change-Id: I4fa9ae5114713d4e61acd1363a5369d16e1a5043
for(String browseContext : browseContexts) {
try {
browseContextResources.add(graph.getResource(browseContext));
+ } catch(ResourceNotFoundException e) {
+ // Expected result, if the browse context is not modelled.
} catch(DatabaseException e) {
- LOGGER.error("Didn't find " + browseContext + " while loading model browser.", e);
+ LOGGER.error("Unexpected error occurred while finding browse context " + browseContext + ".", e);
}
}