private void loadWorkflow(InputStream in) {
XStream stream = new XStream();
stream.alias("flow", Flow.class);
stream.aliasAttribute(Flow.class, "name", "name");
stream.aliasField("start-event", Flow.class, "startEvent");
stream.aliasField("end-event", Flow.class, "endEvent");
stream.alias("gateway", Gateway.class);
stream.alias("task", Task.class);
stream.alias("end-event", Event.class);
stream.aliasAttribute(Event.class, "path", "path");
stream.aliasAttribute(Activity.class, "name", "name");