int serverMajor = serverAPI.getMajor();
int supportedMajor = ApplicationRegistry.SUPPORTED_QPID_JMX_API_MAJOR_VERSION;
if(serverMajor > supportedMajor)
{
serverRegistry.closeServerConnection();
throw new ManagementConsoleException("The server management API version encountered is not supported"
+ " by this console release. Please check for an updated console release.");
}
//connection succeeded, add the ServerRegistry to the ApplicationRegistry