if (wm.getStatistics() != null) {
if (wm instanceof DistributedWorkManager && ((DistributedWorkManager)wm).getDistributedStatistics() != null && raRegistration.getSubModel(PathAddress.pathAddress(peDistributedWm)) == null) {
ResourceBuilder resourceBuilder = ResourceBuilder.Factory.create(peDistributedWm,
new StandardResourceDescriptionResolver(Constants.STATISTICS_NAME + "." + Constants.WORKMANAGER_NAME, CommonAttributes.RESOURCE_NAME, CommonAttributes.class.getClassLoader()));
ManagementResourceRegistration dwmSubRegistration = raRegistration.registerSubModel(resourceBuilder.build());
final Resource dwmResource = new IronJacamarResource.IronJacamarRuntimeResource();
if (!raResource.hasChild(peDistributedWm))
raResource.registerChild(peDistributedWm, dwmResource);