* list.
*/
private void readAvailablePacket() throws IOException {
// Read a packet from the Input Stream.
byte[] bytes = getConnection().readPacket();
JdwpPacket packet = JdwpPacket.build(bytes);
// Add packet to command or reply queue.
if (packet instanceof JdwpCommandPacket)
addCommandPacket((JdwpCommandPacket) packet);
else
addReplyPacket((JdwpReplyPacket) packet);