public Packet toPacket(CreateSequenceData data, @Nullable Packet requestPacket) throws RxRuntimeException {
Packet packet = communicator.createRequestPacket(requestPacket, new CreateSequenceElement(data), rmVersion.protocolVersion.createSequenceAction, true);
if (data.getStrType() != null) {
UsesSequenceSTR usesSequenceSTR = new UsesSequenceSTR();
usesSequenceSTR.getOtherAttributes().put(communicator.soapMustUnderstandAttributeName, "true");
packet.getMessage().getHeaders().add(Headers.create(getJaxbContext(), usesSequenceSTR));
}
return packet;
}