File publicationDirectory = publication.getEnvironment().getPublicationDirectory();
String fileName = WORKFLOW_DIRECTORY + source;
File workflowFile = new File(publicationDirectory, fileName);
WorkflowBuilderFactory factory = new WorkflowBuilderFactory();
WorkflowBuilder builder = factory.createBuilder();
Workflow workflow;
try {
workflow = builder.buildWorkflow(workflowFile);
}