@Override
	@POST
	@Path("/events")
	@ResponseStatus( HttpStatus.CREATED )
	public void addEvent(Event event) throws NotAuthorizedException {
		accessControlUtils.checkAuthorization(Action.ADD_EVENT, requestContext);
		
		String clientApplicationName = getClientApplicationName();
		IPAddress ipAddress = getDetectionSystemIpAddress(event.getDetectionSystem());
		event.setDetectionSystem(new DetectionSystem(clientApplicationName, ipAddress)); 
		
		appSensorServer.getEventStore().addEvent(event);
	}
@ Override @ POST @ Path ( "/events" ) @ ResponseStatus ( HttpStatus . CREATED ) public void addEvent ( Event event ) throws NotAuthorizedException { accessControlUtils . checkAuthorization ( Action . ADD_EVENT , requestContext ) ; String clientApplicationName = getClientApplicationName ( ) ; IPAddress ipAddress = getDetectionSystemIpAddress ( event . getDetectionSystem ( ) ) ; event . setDetectionSystem ( new DetectionSystem ( clientApplicationName , ipAddress ) ) ; appSensorServer . getEventStore ( ) . addEvent ( event ) ; }
{@inheritDoc}