class Bpmn2Marshalling {

    public static DocumentRoot unmarshall(final String raw) {
        Bpmn2Resource bpmn2Resource = Bpmn2ResourceFactory.getInstance().create();
        try {
            bpmn2Resource.load(raw);
        } catch (IOException e) {
            logError(e);
        }
        return getDocumentRoot(bpmn2Resource);
    }

}