Wirebox inbox = (Wirebox) request.getDesktop().getComponentByUuidIfAny((String) data.get("inbox"));
Wirebox outbox = (Wirebox) request.getDesktop().getComponentByUuidIfAny((String) data.get("outbox"));
if (inbox == null || outbox == null || !data.containsKey("joint"))
throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA, new Object[] { data, request });
Wire wire = new Wire();
wire.setIn(inbox);
wire.setOut(outbox);
wire.setConfig("drawingMethod="+drawmethod);
wire.setJoint((String) data.get("joint"));
wire.setParent(outbox.getParent());
return new WireEvent(request.getCommand(), outbox, wire, null);
}