public static String getXspProperty(String propertyName, String defaultValue) { String retVal = ApplicationEx.getInstance().getApplicationProperty(propertyName, getIniVar(propertyName, defaultValue)); return retVal; } public static String getIniVar(String propertyName, String defaultValue) { try { String newVal = getSession().getEnvironmentString(propertyName, true); if (StringUtil.isEmpty(newVal)) { return newVal; } else { return defaultValue; } } catch (NotesException e) { debugPrint(e); return defaultValue; } }