{
Query q = getEntityManager().createQuery("from LinkInformation where url = :url").setParameter("url",
inRequest.getUniqueId());
List<LinkInformation> results = q.getResultList();
LinkInformation result = null;
if (results.size() > 0)
{
result = results.get(0);
Date now = new Date();
if (result.getCreated().getTime() < (now.getTime() - expirationInMilliseconds))
{
getEntityManager().remove(result);
result = null;
}
}