- checkArgument(specObj.getSrlgId() != null, "SrlgId is mandatory.");
- writeUnsignedInt(specObj.getSrlgId().getValue(), body);
- checkArgument(subobject.getAttribute() != null, "Attribute is mandatory.");
- writeUnsignedByte((Uint8) null, body);
- writeUnsignedByte(Uint8.valueOf(subobject.getAttribute().getIntValue()), body);
+
+ final SrlgId srlgId = specObj.getSrlgId();
+ checkArgument(srlgId != null, "SrlgId is mandatory.");
+ ByteBufUtils.write(body, srlgId.getValue());
+
+ final Attribute attribute = subobject.getAttribute();
+ checkArgument(attribute != null, "Attribute is mandatory.");
+ body.writeByte(0);
+ body.writeByte(attribute.getIntValue());