latest_obj.setData(pass_to_manager[1]); if (!latest_obj.equals(po, po.COMPARE_DATA))  different = true;
try { latest_obj.setData((DataInputStream) pass_to_manager[1]); if (!latest_obj.equals(po, po.COMPARE_DATA))  different = true; } catch (Exception e) { e.printStackTrace(); }
	public synchronized void checkDifference(String protocol, String location, Object[] pass_to_manager) {		ProbeObject po = pbuf.get(protocol, location);		if (po == null)			addToMonitorList(protocol, location, pass_to_manager);		else {			//it is already in the hash			ConfigObject cfg_obj = dictatorHash.get(protocol);			ProbeObject latest_obj = new ProbeObject(protocol, location);			boolean different;			if (cfg_obj.lookAtMetadata()) {				latest_obj.setMetadata(pass_to_manager[0]);				if (!latest_obj.equals(po, po.COMPARE_METADATA))  //compare to old object - look at metadata					//po.setMetadata(pass_to_manager[0]);					different = true;			}			if (cfg_obj.lookAtData()) {				latest_obj.setData(pass_to_manager[1]);				if (!latest_obj.equals(po, po.COMPARE_DATA))  //compare to old object - look at data					//po.setData(pass_to_manager[1]);					different = true;			}			if (cfg_obj.lookAtLength()) {				latest_obj.setLength(pass_to_manager[2]);				if (!latest_obj.equals(po, po.COMPARE_LENGTH))  //compare to old object - look at length					//po.setLength(pass_to_manager[2]);					different = true;			}			po = latest_obj;		}	//add to the list of monitored items	public void addToMonitorList(String protocol, String location, Object[] pass_to_manager) {			//if the object is not in the hash			ConfigObject cfg_obj = dictatorHash.get(protocol, location);			po = new ProbeObject(protocol, location);			//store everything in case rules change			po.setMetadata(pass_to_manager[0]);			po.setData(pass_to_manager[1]);			po.setLength(pass_to_manager[2]);		} else {