public void checkHeader(String msg1, String stamp1, String format1,
String host1, String data1) throws ParseException {
SyslogUtils util = new SyslogUtils(false);
ChannelBuffer buff = ChannelBuffers.buffer(200);
buff.writeBytes(msg1.getBytes());
Event e = util.extractEvent(buff);
if(e == null){
throw new NullPointerException("Event is null");
}
Map<String, String> headers2 = e.getHeaders();