public void performSubmittedWork(JSONObject submissionDoc, JSONObject targetDoc) throws Exception {
// Find roles associated with the user who submitted the change
String userId = submissionDoc
.getJSONObject("nunaliit_last_updated")
.getString("name");
CouchUserDocContext userDoc = null;
try {
userDoc = userDb.getUserFromName(userId);
} catch(Exception e) {
// Ignore if we can not find user
}
// Check if submission should be automatically approved
boolean approved = false;
if( null != userDoc ) {
List<String> roles = userDoc.getRoles();
for(String role : roles){
if( "_admin".equals(role) ){
approved = true;
break;
} else if( "administrator".equals(role) ){