public StringSendPacket send(String str,SendListener listener){
  if (str == null)   throw new NullPointerException("Send string can't be null.");
  StringSendPacket entity=null;
  try {
    entity=new StringSendPacket(str,listener);
    send(entity);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return entity;
}

public StringSendPacket send ( String str , SendListener listener ) { if ( str == null ) throw new NullPointerException ( "Send string can't be null." ) ; StringSendPacket entity = null ; try { entity = new StringSendPacket ( str , listener ) ; send ( entity ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return entity ; }
send string to queue
