RootCfg rootConfiguration =
managementContext.getRootConfiguration();
// Get the global configuration and register with it as a change listener.
GlobalCfg globalConfig = rootConfiguration.getGlobalConfiguration();
globalConfig.addChangeListener(this);
// If there are any STMP servers specified, then make sure that if the value
// contains a colon that the portion after it is an integer between 1 and
// 65535.
Set<String> smtpServers = globalConfig.getSMTPServer();
if (smtpServers != null)
{
for (String server : smtpServers)
{
int colonPos = server.indexOf(':');