@Override
public void onStatistics(MonitoringStatistics statistics) {
if (domain == null) {
final String globalSubType = ",subType=" + PROPERTY_SUBTYPE_GLOBAL;
final ApplicationInfo appStats = applicationInfoProvider.get();
String appName = appStats.getResourceConfig().getApplicationName();
if (appName == null) {
appName = "App_" + Integer.toHexString(appStats.getResourceConfig().hashCode());
}
domain = "org.glassfish.jersey:type=" + appName;
unregisterJerseyMBeans(false);
uriStatsGroup = new ResourcesMBeanGroup(statistics.getUriStatistics(), true, this, ",subType=Uris");