stats.incrementCount(tn+".insertRequired");
} else {
stats.incrementCount(tn+".updateRequired");
}
GptUser user = new GptUser();
user.querySqlDB(context,con,resource.owner);
GptResource parentSite = null;
if (resource.isHarvestedDocument) {
parentSite = new GptResource();
parentSite.querySqlDB(context,con,resource.siteuuid);