private void reharvest(JsonSimple response, JsonSimple message) {
		String oid = message.getString(null, "oid");

		try {
			if (oid != null) {
				setRenderFlag(oid);

				// Transformer config
				JsonSimple itemConfig = getConfigFromStorage(oid);
				if (itemConfig == null) {
					log.error("Error accessing item configuration!");
					return;
				}
				itemConfig.getJsonObject().put("oid", oid);

				// Tool chain
				scheduleTransformers(itemConfig, response);
				JsonObject order = newIndex(response, oid);
				order.put("forceCommit", true);
				createTask(response, oid, "clear-render-flag");
			} else {
				log.error("Cannot reharvest without an OID!");
			}
		} catch (Exception ex) {
			log.error("Error during reharvest setup: ", ex);
		}
	}
private void reharvest ( JsonSimple response , JsonSimple message ) { String oid = message . getString ( null , "oid" ) ; try { if ( oid != null ) { setRenderFlag ( oid ) ; JsonSimple itemConfig = getConfigFromStorage ( oid ) ; if ( itemConfig == null ) { log . error ( "Error accessing item configuration!" ) ; return ; } itemConfig . getJsonObject ( ) . put ( "oid" , oid ) ; scheduleTransformers ( itemConfig , response ) ; JsonObject order = newIndex ( response , oid ) ; order . put ( "forceCommit" , true ) ; createTask ( response , oid , "clear-render-flag" ) ; } else { log . error ( "Cannot reharvest without an OID!" ) ; } } catch ( Exception ex ) { log . error ( "Error during reharvest setup: " , ex ) ; } }
Generate a fairly common list of orders to transform and index an object.
This mirrors the traditional tool chain.

@param message
The response to modify
@param message
The message we received