@Override
	public Message putMessage(Message msg) throws JSONException, BadResponseException {

		Representation r = new JsonRepresentation(msg.toJSON());
		r = serv.putResource("intervention/" + interId + "/message", null, r);
		Message message = null;
		try {
			message = new Message(new JsonRepresentation(r).getJsonObject());
		} catch (IOException e) {
			e.printStackTrace();
		}

		return message;
	}