* @return A synchronized workflow instances object.
* @throws WorkflowException when something went wrong.
*/
public SynchronizedWorkflowInstances buildSynchronizedInstance(Document document) throws WorkflowException {
assert document != null;
LanguageVersions versions;
try {
versions = new LanguageVersions(document);
} catch (DocumentException e) {
throw new WorkflowException(e);
}
return new WorkflowDocumentSet(versions, document);
}