if (jdbcStatsSize > 0 || poolStatsSize > 0) {
if (overrideRegistration != null) {
if (jdbcStatsSize > 0) {
ManagementResourceRegistration jdbcRegistration = overrideRegistration.registerSubModel(new StatisticsResourceDefinition(JDBC_STATISTICS,DataSourcesSubsystemProviders.RESOURCE_NAME, jdbcStats));
jdbcRegistration.setRuntimeOnly(true);
<BUG>resource.registerChild(JDBC_STATISTICS, new PlaceholderResource.PlaceholderResourceEntry(JDBC_STATISTICS));</BUG>
}
if (poolStatsSize > 0) {
ManagementResourceRegistration poolRegistration = overrideRegistration.registerSubModel(new StatisticsResourceDefinition(POOL_STATISTICS, DataSourcesSubsystemProviders.RESOURCE_NAME, poolStats));
poolRegistration.setRuntimeOnly(true);
<BUG>resource.registerChild(POOL_STATISTICS, new PlaceholderResource.PlaceholderResourceEntry(JDBC_STATISTICS));</BUG>
}

if (jdbcStatsSize > 0 || poolStatsSize > 0) {
if (overrideRegistration != null) {
if (jdbcStatsSize > 0) {
ManagementResourceRegistration jdbcRegistration = overrideRegistration.registerSubModel(new StatisticsResourceDefinition(JDBC_STATISTICS,DataSourcesSubsystemProviders.RESOURCE_NAME, jdbcStats));
jdbcRegistration.setRuntimeOnly(true);
