* representing SMPP command <code>id</code>.
* @throws ie.omk.smpp.BadCommandIDException
* if the command ID is not recognized.
*/
public static SMPPPacket newInstance(int id) throws BadCommandIDException {
SMPPPacket response = null;
switch (id) {
case SMPPPacket.GENERIC_NACK:
response = new GenericNack();
break;