public static SMPPPacket newInstance(int id) throws BadCommandIDException {
SMPPPacket response = null;
switch (id) {
case SMPPPacket.GENERIC_NACK:
response = new GenericNack();
break;
case SMPPPacket.BIND_RECEIVER:
response = new BindReceiver();
break;