@PUT
	@Path("edit/{id}")
	@Produces(MediaType.APPLICATION_JSON)
	@UnitOfWork
	public void editUser(@PathParam("id") LongParam id, String json) {
		try {
			User readValue = new ObjectMapper().readValue(json, User.class);
			User user = getUserById(id);
			String atr;
			atr = readValue.getEmail();
			if (atr != null) {
				user.setEmail(atr);
			}
			atr = readValue.getPassword();
			if (atr != null) {
				user.setPassword(atr);
			}
			atr = readValue.getName();
			if (atr != null) {
				user.setName(atr);
			}
			atr = readValue.getType();
			if (atr != null) {
				user.setType(atr);
			}
			if (atr != null) {
				user.setAdmin(readValue.isAdmin());
			}

		} catch (JsonParseException e) {
			e.printStackTrace();
		} catch (JsonMappingException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}