public void addLocation(String location, String filePath){
		Picture picture = findById(filePath);
		if(picture != null) {
			LocationI loc = (Location)locationDao.findById(location);
			if(loc != null){
				@SuppressWarnings("unchecked")
				List<PictureI> pics = (List<PictureI>) loc.getPictures();
				if((!pics.contains(picture))){
					beginTransaction();
					pics.add(picture);
					loc.setPictures(pics);
					picture.setLocation(loc);
					persist(picture);
					entityManager.persist(loc);
					commitTransaction();
				}
			}else{
				beginTransaction();
				loc= new Location();
				loc.setLocation(location);

				List<Picture> pictures = new ArrayList<Picture>();
				pictures.add(picture);
				loc.setPictures(pictures);
				picture.setLocation(loc);
				entityManager.persist(loc);
				persist(picture);
				commitTransaction();
			}
		}

	}