Creating type-safe MBean proxies