protected Command getSplitTransitionCommand(Request request) {
// TODO error when using this split, nodes do not know connections
if (elementConnectionFactory == null) {
throw new IllegalStateException("DefaultElementConnectionFactory is null");
}
SplitConnectionCommand cmd = new SplitConnectionCommand();
cmd.setElementConnection(((ElementConnection) getHost().getModel()));
cmd.setNewSecondConnection(elementConnectionFactory.createElementConnection());
cmd.setParent(((ProcessWrapper) ((ElementConnectionEditPart) getHost())
.getSource().getParent().getModel()));
cmd.setNewElement(((ElementWrapper) ((CreateRequest) request).getNewObject()));
return cmd;
}