private <T> OptimizedMBean<T> createOptimizedMBean(ManagementInfo info, Supplier<T> supplier) throws IntrospectionException, ClassNotFoundException, NoSuchMethodException { String className = info.getManagementClass(); Set<AttributeDescription> attributes = new HashSet<>(); Map<String, MethodHolder> getters = new HashMap<>();