public void update(String userLogin, UserDTO userDTO) throws Exception {
		Gson gson = new Gson();
		String json = gson.toJson(userDTO);
		System.out.println(json);

		ClientConfig config = new DefaultClientConfig();
		client = Client.create(config);
		client.addFilter(new LoggingFilter());
		webResource = client.resource(address + "adminPanel/updateUser/"
				+ userLogin);

		client.addFilter(new HTTPBasicAuthFilter(login, pass));
		webResource.type(MediaType.APPLICATION_JSON).put(json);

	}