Map result = new LinkedHashMap(); result.put("ContainerName", container.getName()); result.put("Type", sanitizeString(provider.getType())); result.put("Name", sanitizeString(provider.getName())); if (provider.getSubType() != null) { result.put("SubType", sanitizeString(provider.getSubType())); } return result;
return createObjectNameProps(provider, false);
    public Map createObjectNameProps(MBeanInfoProvider provider){        Map result = new LinkedHashMap();        result.put("ContainerName", container.getName());        result.put("Type", sanitizeString(provider.getType()));        result.put("Name", sanitizeString(provider.getName()));        if (provider.getSubType() != null) {            result.put("SubType", sanitizeString(provider.getSubType()));        }        return result;    }