QueryResults results = oql.execute(Database.READONLY);
if (results.hasMore())
{
SmallestContentVersion contentVersion = (SmallestContentVersion)results.next();
contentVersionVO = contentVersion.getValueObject();
CacheController.cacheObjectInAdvancedCache("contentVersionCache", versionKey, contentVersionVO, new String[]{CacheController.getPooledString(2, contentVersionVO.getId()), CacheController.getPooledString(1, contentVersionVO.getContentId())}, true);
}
else
{