private Response putAndGetResponse(Behavior target, String client_id)
			throws IOException {
		Response res;
		String baseDir = baseFilePath + File.separator + client_id
				+ File.separator + "Target";

		// System.out.println(baseDir + File.separator + "Target.xml");
		File targetXmlFile = new File(baseDir + File.separator + "Target.xml");

		if (!targetXmlFile.exists()) {
			new File(baseDir).mkdirs();
			targetXmlFile.createNewFile();
		}

		JAXBContext jaxbContext;
		try {
			jaxbContext = JAXBContext.newInstance(Behavior.class);
			Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
			jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
			jaxbMarshaller.marshal(target, targetXmlFile);

			res = Response.created(uriInfo.getAbsolutePath()).build();
			return res;
		} catch (JAXBException e) {
			throw new RuntimeException(
					"Problem with POST request: Impossible to create file on server.");
		}
	}