this.format = format;
}
public PacketEnvelope build(String commandLine, DataInput in) throws IOException
{
ConsumerInfo ci = new ConsumerInfo();
Properties headers = headerParser.parse(in);
String destination = headers.getProperty(Stomp.Headers.Subscribe.DESTINATION);
ActiveMQDestination actual_dest = DestinationNamer.convert(destination);
ci.setDestination(DestinationNamer.convert(destination));
ci.setStarted(true);
ci.setStartTime(System.currentTimeMillis());
ci.setClientId(format.getClientId());
short consumer_no = StompWireFormat.clientIds.getNextShortSequence();
ci.setConsumerNo(consumer_no);
ci.setReceiptRequired(true);
ci.setSessionId(format.getSessionId());
while (in.readByte() != 0) {}
String consumerId = StompWireFormat.clientIds.generateId();
ci.setConsumerId(consumerId);
Subscription s = new Subscription(format, consumer_no, consumerId);
s.setDestination(actual_dest);
String ack_mode_key = headers.getProperty(Stomp.Headers.Subscribe.ACK_MODE);
if (ack_mode_key != null && ack_mode_key.equals(Stomp.Headers.Subscribe.AckModeValues.CLIENT))
{