/**
  * load the translated data of an instance regarding the given lang 
  * @return void
  */
 public function getTranslatedData()
 {
     if (!tao_helpers_Request::isAjax()) {
         throw new Exception("wrong request mode");
     }
     $data = array();
     if ($this->hasRequestParameter('lang')) {
         $data = tao_helpers_Uri::encodeArray($this->service->getTranslatedProperties($this->getCurrentInstance(), $this->getRequestParameter('lang')), tao_helpers_Uri::ENCODE_ARRAY_KEYS);
     }
     echo json_encode($data);
 }