QueryResults results = oql.execute();
this.logger.info("Fetching entity in read/write mode");
while (results.hasMore())
{
AccessRight accessRight = (AccessRight)results.next();
logger.info("accessRight:" + accessRight.getAccessRightId());
accessRightList.add(accessRight);
}
results.close();
oql.close();