protected String getPostToken(String dataNameSuffix) {
String dataName = getPostTokenDataName(dataNameSuffix);
SimpleData storedToken = getDataRepository().getSimpleValue(dataName);
SimpleData storedDate = getDataRepository().getSimpleValue(dataName+"/TS");
if (storedToken != null && storedDate instanceof DateData) {
DateData date = (DateData) storedDate;
long age = System.currentTimeMillis() - date.getValue().getTime();
if (age > 0 && age < getPostTokenAgeTimeout())
return storedToken.format();
}
return null;