/**
  * Returns a view given its ID.
  *
  * @param viewId ID of the view
  * @return The view
  * @throws DataNotFoundException If there's no view with the specified ID
  */
 public AnalyticsView getView(String viewId) {
   AnalyticsViewClientConnection connection = _viewConnections.get(viewId);
   if (connection == null) {
     s_logger.debug("Received request for unknown view ID {}", viewId);
     throw new DataNotFoundException("No view found with ID " + viewId);
   }
   return connection.getView();
 }