- PortAction port = action.getAugmentation(PortAction.class);
- outBuffer.writeInt(port.getPort().getValue().intValue());
- MaxLengthAction maxlength = action.getAugmentation(MaxLengthAction.class);
- outBuffer.writeShort(maxlength.getMaxLength());
+ outBuffer.writeInt(((OutputActionCase) action.getActionChoice()).getOutputAction()
+ .getPort().getValue().intValue());
+ outBuffer.writeShort(((OutputActionCase) action.getActionChoice()).getOutputAction().getMaxLength());