public <T> int sendData(T data, String typeURI) throws Exception {
		Gson gson = new Gson();
		String json = gson.toJson(data);
		System.out.println(json);

		prepareConnection();

		webResource = client.resource(address + "adminPanel/" + typeURI);

		ClientResponse response = webResource.type(MediaType.APPLICATION_JSON)
				.post(ClientResponse.class, json);

		return response.getStatus();
	}