private void prepareConnection() {
		ClientConfig config = new DefaultClientConfig();
		client = Client.create(config);
		//client.addFilter(new LoggingFilter());
		client.addFilter(new HTTPBasicAuthFilter(login, pass));
	}