MessageProperties messageProperties = null;
List<Struct> otherProps = null;
for(int i = 0 ; i < headerCount; i++)
{
Struct struct = decoder.readStruct32();
if(struct instanceof DeliveryProperties && deliveryProperties == null)
{
deliveryProperties = (DeliveryProperties) struct;
}
else if(struct instanceof MessageProperties && messageProperties == null)