}
@Override
public boolean hasChild(PathElement element) {
try {
Statistics statistics = getStatistics();
// if element key matches, check if element value also matches
if (statistics.getChildrenNames().contains(element.getKey())) {
Statistics childStatistics = statistics.getChild(element.getKey());
return childStatistics != null && childStatistics.getDynamicChildrenNames(entityManagerFactoryLookup, PathWrapper.path(puName)).contains(element.getValue());
} else {
return super.hasChild(element);
}
}
catch( IllegalStateException e) { // WFLY-2436 ignore unexpected exceptions (e.g. JIPI-27 may throw an IllegalStateException)