ByteArrayInputStream byteInput = new ByteArrayInputStream(buf);
ObjectInputStream objectInput = new ObjectInputStream(byteInput);
Object obj = objectInput.readObject();
if(obj instanceof Detection)
{
Detection msg = (Detection)obj;
if(log.isTraceEnabled())
{
log.trace(this + " received detection: " + msg);
}