Object initialized = sessionMap.get("_SIP_INFO_SESSION_INITIALIZED");
if (initialized != null) {
return;
}
MessageUtil msgUtil = MessageUtil.getInstance();
// Initialize Product Specific Attributes
sessionMap.put("productImageURL", msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "productImage.URL"));
int prodImageHeight = 23;
int prodImageWidth = 422;
try {
prodImageWidth = Integer.parseInt(msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "productImage.width"));
prodImageHeight = Integer.parseInt(msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "productImage.height"));
} catch (Exception ex) {
//use the preset values.
}
sessionMap.put("productImageWidth", prodImageWidth);
sessionMap.put("productImageHeight", prodImageHeight);
sessionMap.put("loginProductImageURL", msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "login.productImage.URL"));
int loginProdImageHeight = 40;
int loginProdImageWidth = 455;
try {
loginProdImageWidth = Integer.parseInt(msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "login.productImage.width"));
loginProdImageHeight = Integer.parseInt(msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "login.productImage.height"));
} catch (Exception ex) {
//use preset values.
}
sessionMap.put("loginProductImageWidth", loginProdImageWidth);
sessionMap.put("loginProductImageHeight", loginProdImageHeight);
sessionMap.put("fullProductName", msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "productName.full"));
sessionMap.put("productVersion", msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "product.version"));
sessionMap.put("loginButtonTooltip", msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "loginButton.tooltip"));
sessionMap.put("mastHeadDescription", msgUtil.getMessage(SIP_RESOURCE_BUNDLE, "mastHeadDescription"));
sessionMap.put("showLoadBalancer", false);
sessionMap.put("logoutConfirmMsg", msgUtil.getMessage(SIP_RESOURCE_BUNDLE,
"logoutConfirmMsg"));
sessionMap.put("upsellingURLPE", msgUtil.getMessage(SIP_RESOURCE_BUNDLE,
"upselling.comms.url.pe"));
sessionMap.put("upsellingURLEE", msgUtil.getMessage(SIP_RESOURCE_BUNDLE,
"upselling.comms.url.ee"));
// Set the URN for Communications Server
String productURN = "urn:uuid:555af591-db3b-11dc-ac55-080020a9ed93";
String installRoot = System.getProperty(SystemPropertyConstants.INSTALL_ROOT_PROPERTY);