@PUT
	@Produces( { "application/json", "application/xml" })
	@Path("/mood/id/{id}/{username}/{valence}/{arousal}")
	public void putMoodByID(@PathParam("id") String id,
			@PathParam("username") String username,
			@PathParam("valence") double valence, @PathParam("arousal") double arousal) {
		if(valence>=0 && valence <=1 && arousal>=0 && arousal<=1){
			PersistenceManager pm = PMF.get().getPersistenceManager();
			User user = getUser(username);
			String k = KeyFactory.createKeyString(Experience.class.getSimpleName(),
					id);
			Experience experience = pm.getObjectById(Experience.class, k);
			Event newMoodEvent = new Event();
			newMoodEvent.setId(UUID.randomUUID().toString());
			newMoodEvent.setExperienceid(id);
			newMoodEvent.setClassName("MoodEvent");
			newMoodEvent.setCreator(user.getUsername());
			newMoodEvent.setDatetimemillis(new Date().getTime());
			newMoodEvent.setShared(false);
			newMoodEvent.setLatitude("0");
			newMoodEvent.setLongitude("0");
			newMoodEvent.setValence(valence);
			newMoodEvent.setArousal(arousal);
	
	
			try {
				try {
					experience.getEvents().add(newMoodEvent);
					pm.makePersistent(experience);
				} catch (Exception e) {
					// TODO: handle exception
				}
			} finally {
				pm.close();
			}
		}else{
			//Do not insert
		}
			

	}