public void send_system_request(JSystemPiqi.system_request request) throws Exception {
		if (request != null) {
			write_message(JOutPiqi.response.newBuilder().setSystem(request).build());
			JInPiqi.request packet = read_message();

			if(packet.hasSystem()){
				JSystemPiqi.system_response response = packet.getSystem();
				if (!response.hasOk()) {
					throw new SystemException(
							response.getError().getCode(),
							response.getError().getDescription()
					);
				}
			} else {
				throw new Exception("Unexpected response received");
			}
		}
	}