code: public void sendAuditEvent(AuditEventMessage[] msgs) throws Exception 
  	{
          if (!EventUtils.isEmptyOrNull(msgs)) {
          	DatagramSocket socket = new DatagramSocket();
      		for (int i=0; i<msgs.length; i++) {
      			if (!EventUtils.isEmptyOrNull(msgs[i])) {
      				send(msgs[i], socket, msgs[i].getDestinationAddress(), msgs[i].getDestinationPort());
      			}
      		}
             socket.close();
          }
  	}
docs: /* (non-Javadoc)
  @see org.openhealthtools.ihe.atna.auditor.sender.AuditMessageSender#sendAuditEvent(org.openhealthtools.ihe.atna.auditor.events.AuditEventMessage[])