@GET
	@Path("/getLikedItems")
	@Produces(MediaType.APPLICATION_JSON)
	public Response getLikedItems(@QueryParam("userId") String userId,
			@Context HttpServletRequest request) {
		ItemsLikedProcess itemsLikedProcess = new ItemsLikedProcess();
		HttpSession session = request.getSession(true);
		
		// resetting
		session.setAttribute("isTrackFound", null);
		session.setAttribute("isAlbumFound", null);
		session.setAttribute("isArtistFound", null);
		session.setAttribute("isGenreFound", null);
		//resetting ends
		List<Tracks> tracksList = new ArrayList<Tracks>();
		List<Albums> albumList = new ArrayList<Albums>();
		List<Artists> artistList = new ArrayList<Artists>();
		List<Genre> genreList = new ArrayList<Genre>();
		
		String likedTrackFound = null;
		String likedAlbumFound = null;
		String likedArtistFound = null;
		String likedGenreFound = null;
		
		session.setAttribute("likedTracks", tracksList);
		session.setAttribute("likedAlbums", albumList);
		session.setAttribute("likedArtist", artistList);
		session.setAttribute("likedGenre", genreList);
		
		
		session.setAttribute("likedTrackFound", likedTrackFound);
		session.setAttribute("likedAlbumFound", likedAlbumFound);
		session.setAttribute("likedArtistFound", likedArtistFound);
		session.setAttribute("likedGenreFound", likedGenreFound);
		
		//for track
		tracksList = itemsLikedProcess.searchLikedTracks(userId);
		if (!tracksList.isEmpty()) {
		session.setAttribute("likedTracks", tracksList);
		session.setAttribute("likedTrackFound", "true");
		}
		for (Tracks track : tracksList) {
			System.out.println(track.getTrackId() + " " + track.getRating() + " " + track.getType());
		}
		
		//for album
		albumList = itemsLikedProcess.searchLikedAlbums(userId);
		if (!tracksList.isEmpty()) {
			session.setAttribute("likedAlbums", albumList);
			session.setAttribute("likedAlbumFound", "true");
			}
		
		
		for (Albums album : albumList) {
			System.out.println(album.getAlbumId() + " " + album.getRating() + " " + album.getType());
		}
		
		//for artist
		
		//Artist
		artistList = itemsLikedProcess.searchLikedArtists(userId);
		if (!artistList.isEmpty()) {
			session.setAttribute("likedArtist", artistList);
			session.setAttribute("likedArtistFound", "true");
		}
		for (Artists artist : artistList) {
			System.out.println(artist.getArtistId() + " " + artist.getRating());
		}
		
		//for genre
		genreList = itemsLikedProcess.searchLikedGenre(userId);
		if (!genreList.isEmpty()) {
			session.setAttribute("likedGenre", genreList);
			session.setAttribute("likedGenreFound", "true");
			
		}
		for (Genre genre : genreList) {
			System.out.println(genre.getGenreId() + " " + genre.getRating());
		}
		
		return Response.status(200).entity(new User(1, "amol")).build();
	}