code: @Override
  	public Response checkMessagingConnectionWithAgent(
  			String applicationName,
  			String scopedInstancePath,
  			String message ) {
  
  		this.logger.fine( "Request: check the connection with agent " + applicationName + " :: " + scopedInstancePath + ". message=" + message );
  		final ManagedApplication ma = this.manager.applicationMngr().findManagedApplicationByName( applicationName );
  		String lang = lang( this.manager );
  
  		Response response;
  		int pingResult;
  		final Instance instance;
  
  		if( ma == null )
  			response = handleError( Status.NOT_FOUND, new RestError( REST_INEXISTING, application( applicationName )), lang ).build();
  		else if(( instance = InstanceHelpers.findInstanceByPath( ma.getApplication(), scopedInstancePath )) == null )
  			response = handleError( Status.NOT_FOUND, new RestError( REST_INEXISTING, instance( scopedInstancePath ), application( applicationName )), lang ).build();
  		else if(( pingResult = this.manager.debugMngr().pingAgent( ma, instance, message )) == 1 )
  			response = handleError( Status.BAD_REQUEST, new RestError( REST_DEBUG_AGENT_KO ), lang ).build();
  		else if( pingResult == 2 )
  			response = handleError( Status.INTERNAL_SERVER_ERROR, new RestError( REST_MESSAGING_ERROR ), lang ).build();
  		else
  			response = handleError( Status.OK, new RestError( REST_DEBUG_AGENT_KO, name( "PING" ), value( message )), lang ).build();
  
  		return response;
  	}
docs: /*
  (non-Javadoc)
  @see net.roboconf.dm.rest.services.internal.resources.IDebugResource
  #checkMessagingConnectionWithAgent(java.lang.String, java.lang.String, java.lang.String)