code: private void workflowCuration(JsonSimple response, JsonSimple message) {
  		String oid = message.getString(null, "oid");
  		if (!workflowCompleted(oid)) {
  			return;
  		}
  
  		// Resolve relationships before we continue
  		try {
  			JSONArray relations = mapRelations(oid);
  			// Unless there was an error, we should be good to go
  			if (relations != null) {
  				JsonObject request = createTask(response, oid,
  						"curation-request");
  				if (!relations.isEmpty()) {
  					request.put("relationships", relations);
  				}
  			}
  		} catch (Exception ex) {
  			log.error("Error processing relations: ", ex);
  			return;
  		}
  
  	}
docs: Assess a workflow event to see how it effects curation
  
  @param response
  The response object
  @param message
  The incoming message