int presencePort = ((Integer) getSettingTypedValue(ServerSettings.PRESENCE_SERVER_SIP_PORT)) .intValue();
int presencePort = getPresenceServerPort();
    public Collection getAliasMappings() {        Collection aliases = new ArrayList();        String domainName = m_coreContext.getDomainName();        int presencePort = ((Integer) getSettingTypedValue(ServerSettings.PRESENCE_SERVER_SIP_PORT))                .intValue();        String signInCode = getSettingValue(ServerSettings.PRESENCE_SIGN_IN_CODE);        String signOutCode = getSettingValue(ServerSettings.PRESENCE_SIGN_OUT_CODE);        // HACK: assume that presence server runs on the same machine as SIP proxy        String presenceServer = m_phoneDefaults.getOutboundProxy();        aliases.add(createPresenceAliaseMapping(signInCode.trim(), domainName, presenceServer,                presencePort));        aliases.add(createPresenceAliaseMapping(signOutCode.trim(), domainName, presenceServer,                presencePort));        return aliases;    }