*
* @param key
* @return
*/
private static String getFromLocalStorage(String key) {
StorageMap storageMap = getStorageMap();
String domain = Helper.getCurrentHost();
if (storageMap.containsKey(domain + "_" + key)) {
return storageMap.get(domain + "_" + key);
} else if (storageMap.containsKey(key)) {
//for backwards compatability (i.e. the time when we didnt use the basedomain as part of the key)
String value = storageMap.get(key);
storeInLocalStorage(key, value); //settings it again stores it under correct key with domain name
storageMap.remove(key);//remove old key
return value;
}
return null;
}