{
if(response.indexOf("serverStartDateTime:") > -1)
{
String applicationStartupDateTimeString = response.substring(response.indexOf("serverStartDateTime:") + 20).trim();
logger.info("applicationStartupDateTimeString:" + applicationStartupDateTimeString);
VisualFormatter visualFormatter = new VisualFormatter();
Date serverStartupDate = visualFormatter.parseDate(applicationStartupDateTimeString, "yyyy-MM-dd HH:mm:ss");
PublicationVO publicationVO = PublicationController.getController().getPublicationVO(publicationId);
if(publicationVO.getPublicationDateTime().before(serverStartupDate))
publicationDetails.add(new String[]{"" + deliverUrl, "N/A", "Application restarted after the publication: " + applicationStartupDateTimeString});
else
publicationDetails.add(new String[]{"" + deliverUrl, "N/A", "No information found"});
}
else
{
publicationDetails.add(new String[]{"" + deliverUrl, "N/A", "No information found"});
}
}
else
{
Map<String,String> responseMap = httpHelper.toMap(response.trim(), "utf-8");
CacheEvictionBean bean = CacheEvictionBean.getCacheEvictionBean(responseMap);
if(bean == null)
throw new Exception("No information found");
VisualFormatter visualFormatter = new VisualFormatter();
publicationDetails.add(new String[]{"" + deliverUrl, responseMap.get("status"), "" + visualFormatter.formatDate(bean.getProcessedTimestamp(), "yyyy-MM-dd HH:mm:ss")});
}
}
}
catch(Exception e)
{