QueryResults results = oql.execute(Database.READONLY);
//t.printElapsedTime("Executed query.....");
if (results.hasMore())
{
SmallestSiteNodeImpl siteNode = (SmallestSiteNodeImpl)results.next();
//System.out.println("siteNode:" + siteNode.getSiteNodeVersionId() + ":" + siteNode.getValueObject().getSiteNodeVersionId() + ":" + siteNode.getValueObject().getVersionModifier() + ":" + siteNode.getValueObject().getModifiedDateTime());
siteNodeVO = siteNode.getValueObject();
String siteNodeCacheKey = "" + siteNode.getValueObject().getId();
CacheController.cacheObjectInAdvancedCache("siteNodeCacheWithLatestVersion", siteNodeCacheKey, siteNode.getValueObject(), new String[]{CacheController.getPooledString(3, siteNode.getValueObject().getId())}, true);
}
results.close();
oql.close();