}
private TMLContext retrieveContext(WGHierarchicalDatabaseEvent event) throws WGAPIException, TMLException {
// determine content for context
WGContent content = null;
if (event.getType().equals(WGHierarchicalDatabaseEvent.TYPE_POST_CREATE_CONTENT) ||
event.getType().equals(WGHierarchicalDatabaseEvent.TYPE_PRE_DELETE_CONTENT) ||
event.getType().equals(WGHierarchicalDatabaseEvent.TYPE_PRE_UPDATE_CONTENT) ||
event.getType().equals(WGHierarchicalDatabaseEvent.TYPE_POST_UPDATE_CONTENT) ||
event.getType().equals(WGHierarchicalDatabaseEvent.TYPE_PRE_MOVE_CONTENT_TO) ||