class WebMBeanServerAdapter {

    public Set<String> getMBeanNames() {
        Set<String> nameSet = new TreeSet<String>();
        for (ObjectInstance instance : mBeanServer.queryMBeans(null, null)) {
            nameSet.add(sanitizer.escapeValue(instance.getObjectName().getCanonicalName()));
        }
        return nameSet;
    }

    public  WebMBeanServerAdapter(MBeanServer mBeanServer);

}