private int buildFlags(){
  int flags=0;
  if (DestinationName != null) {
    flags|=BitMap.DESTINATION_NAME_BIT;
  }
  if (JMSDestination != null) {
    flags|=BitMap.JMS_DESTINATION_BIT;
  }
  if (JMSDeliveryMode != null) {
    flags|=BitMap.JMS_DELIVERY_MODE_BIT;
  }
  if (JMSExpiration != null) {
    flags|=BitMap.JMS_EXPIRATION_BIT;
  }
  if (JMSPriority != null) {
    flags|=BitMap.JMS_PRIORITY_BIT;
  }
  if (JMSMessageID != null) {
    flags|=BitMap.JMS_MESSAGE_ID_BIT;
  }
  if (JMSTimestamp != null) {
    flags|=BitMap.JMS_TIMESTAMP_BIT;
  }
  if (JMSCorrelationID != null) {
    flags|=BitMap.JMS_CORRELATION_ID_BIT;
  }
  if (JMSReplyTo != null) {
    flags|=BitMap.JMS_REPLY_TO_BIT;
  }
  if (JMSType != null) {
    flags|=BitMap.JMS_TYPE_BIT;
  }
  if (JMSRedelivered != null) {
    flags|=BitMap.JMS_REDELIVERED_BIT;
  }
  if (Body != null) {
    flags|=BitMap.BODY_BIT;
  }
  if (Properties != null) {
    flags|=BitMap.PROPERTIES_BIT;
  }
  return flags;
}

private int buildFlags ( ) { int flags = 0 ; if ( DestinationName != null ) { flags |= BitMap . DESTINATION_NAME_BIT ; } if ( JMSDestination != null ) { flags |= BitMap . JMS_DESTINATION_BIT ; } if ( JMSDeliveryMode != null ) { flags |= BitMap . JMS_DELIVERY_MODE_BIT ; } if ( JMSExpiration != null ) { flags |= BitMap . JMS_EXPIRATION_BIT ; } if ( JMSPriority != null ) { flags |= BitMap . JMS_PRIORITY_BIT ; } if ( JMSMessageID != null ) { flags |= BitMap . JMS_MESSAGE_ID_BIT ; } if ( JMSTimestamp != null ) { flags |= BitMap . JMS_TIMESTAMP_BIT ; } if ( JMSCorrelationID != null ) { flags |= BitMap . JMS_CORRELATION_ID_BIT ; } if ( JMSReplyTo != null ) { flags |= BitMap . JMS_REPLY_TO_BIT ; } if ( JMSType != null ) { flags |= BitMap . JMS_TYPE_BIT ; } if ( JMSRedelivered != null ) { flags |= BitMap . JMS_REDELIVERED_BIT ; } if ( Body != null ) { flags |= BitMap . BODY_BIT ; } if ( Properties != null ) { flags |= BitMap . PROPERTIES_BIT ; } return flags ; }
creates a map of what is null and what is not
