Have a button and in the action listener event..you should drag and drop both create & commit onto your page so that it will have the required bindings in the pagedef.
OperationBinding createOperationBinding = ADFUtils.getOperationBindingForMethod("Create");
OperationBinding commitOperationBinding = ADFUtils.getOperationBindingForMethod("Commit");
If you are using a bounded task flow you can drag the method onto the task flow and concatenate them with navigation targets. From a button you navigate to the first method from that to the second and so on. This would not require to write java.