if (DevelopmentSettings.isBenchmarkEnabled()) {
Duration duration = new Duration();
resourceModel.addResourceSet(resourceSet);
Window.alert("ResourceModel.addResourceSet execution time: "
+ duration.elapsedMillis() + " ms");
} else {
resourceModel.addResourceSet(resourceSet);
}
assert resourceModel.containsResourceSet(resourceSet);