private void configureOperationsToRun(Operation template, HttpEndpoint newItem, ResponseType responseType) {
TriggeredOperations ops = new TriggeredOperations();
OperationRunMode mode = responseType == ResponseType.OPERATION ? OperationRunMode.SYNCHRONOUS :
OperationRunMode.ASYNCHRONOUS;
ops.addOperation(new TriggeredOperation(template.getID(), null, mode, mode == OperationRunMode.SYNCHRONOUS,
isUsingRequestAsSource(template)));
newItem.setTriggeredOperations(ops);
}