return new ResultImpl(context, true, true, new DataImpl(head.getBytes()), new DataImpl(tail.getBytes()));
}
else
{
// [TODO: optimize by prefabricating the NetworkImpl]
NetworkImpl network = new NetworkParser().parse(replaceWorkflow.getBytes());
// Returns the Workflow.
return new WorkflowImpl(new ResultImpl(context, true, true, new DataImpl(head.getBytes()), null), network);
}
}
else
{
// [TODO: optimize by prefabricating the NetworkImpl]
NetworkImpl network = new NetworkParser().parse(replaceWorkflow.getBytes());
// Returns the Workflow.
return new WorkflowImpl(new ResultImpl(context, true, true, context.in_1_link().content(), null), network);
}
}
else