@Override
	public synchronized int registerClient(String client_name, String first_tag,
			String second_tag) {
		try {

			final NameComponent[] clientName = { new NameComponent(client_name,
					"Object") };
			final Client client = ClientHelper.narrow(namingContext
					.resolve(clientName));

			if (first_tag.equals("T") || second_tag.equals("T")) {
				clientUpdater.appendTemperatureClient(client);

			}
			if (first_tag.equals("P") || second_tag.equals("P")) {
				clientUpdater.appendPressureClient(client);

			}
			if (first_tag.equals("H") || second_tag.equals("H")) {
				clientUpdater.appendHumidityClient(client);
			}

		} catch (Exception e) {
			e.printStackTrace();
		}

		return 0;
	}