//Detect the value of the 'version' key property on the UserManagement MBean ObjectName.
//If present, we have a v1.2 API server. If null, we have a v1.1 API server.
//Use an ObjectName pattern (the ?) to match the 'type' and allow this to work for non-admin users
objName = new ObjectName(server.getDomain() + ":type="+ "UserManagemen?" + ",*");
objectInstances = mbsc.queryNames(objName, null);
if(objectInstances.size() != 0)
{
for (Iterator<ObjectName> itr = objectInstances.iterator(); itr.hasNext();)
{