public void writeTraceEvent(String traceLine, HostPort hostPort) {
		//traceLine = this.getName() + "-" + traceLine;
		if (getTraceFilter().matches(traceLine)) {
			  try {
				  //BeanTraceEventImpl te = TraceFactory.createTraceEvent(traceLine);
				  getTraceEvents().getReadWriteLock().writeLock().lock();
				  ITraceEvent te = m_eventParser.createEvent(traceLine,0);
				  if (te.getEventType()==EventType.DEBUG)
					  System.out.println("AGENT DEBUG: " + te.getRawEventData() );
				  else {
					  te.setAgentHostName(hostPort.hostNameOrIpAddress);
					  te.setAgentPort((short) hostPort.port);
					  if (getTraceFilterExt().matches(te)) {
						  getTraceEvents().add(te);
					  }
					  
				  }
			} catch (IntraceException e) {
				e.printStackTrace();
			} finally {
				getTraceEvents().getReadWriteLock().writeLock().unlock();
			}
		}

	}