* Executes the supplied <code>OsWorkflowCallback</code> against the current workflow instance as the caller bound
* to the current <code>OsWorkflowContext</code>.
*/
public Object execute(OsWorkflowCallback callback) {
try {
Workflow workflow = createWorkflow(OsWorkflowContextHolder.getWorkflowContext().getCaller());
workflow.setConfiguration(this.configuration);
return callback.doWithWorkflow(workflow);
}
catch (WorkflowException ex) {
// TODO: proper exception translation
throw new org.springmodules.workflow.WorkflowException("", ex);