@Override
 public void calculateInfluences(
     DetailedMovie detailedMovie,
     ArrayList<DetailedMovie> detailedMovieInfByList,
     ArrayList<DetailedMovie> detailedMovieInfList) {
   query.calculateInfluences(detailedMovie, detailedMovieInfByList, detailedMovieInfList);
   Collections.sort(detailedMovieInfByList);
   Collections.sort(detailedMovieInfList);
 }
  @Override
  public Movie getMovieDetails(String movieJson) throws InfluException {
    try {
      Movie movie = new Movie(movieJson);
      Movie detailedMovie = query.getMovieDetails(movie);
      return detailedMovie;

    } catch (JSONException ex) {
      Logger.getLogger(InfluirImplementation.class.getName()).log(Level.SEVERE, null, ex);
      throw new InfluException("Unable to get details of movie" + ex.getMessage());
    }
  }
 @Override
 public ArrayList<Movie> getTop250MovieMovies() throws InfluException {
   ArrayList<Movie> movies = query.getTop250MovieMovies();
   return movies;
 }