@Override
	public void addComment(String comment, String albumName){
		albumName = albumName.toLowerCase();
		comment = comment.toLowerCase();
		Album album = findById(albumName);
		if(album != null) {
			JpaCommentDao jcd = new JpaCommentDao();
			Comment comm = jcd.findById(comment);
			if(comm != null){
				beginTransaction();
				List<Album> albums = comm.getAlbums();
				if((!albums.contains(album))){
					albums.add(album);
					comm.setAlbums(albums);
					persist(album);
					entityManager.persist(comm);;
					commitTransaction();
				}

			}else{
				beginTransaction();
				Comment com = new Comment();
				com.setComment(comment);
				List<Album> albums = new ArrayList<Album>();
				albums.add(album);
				com.setAlbums(albums);
				album.setComment(com);
				entityManager.persist(com);
				persist(album);
				commitTransaction();
			}
		}
	}