/**
  * create remote object from ECSContent object
  *
  * @param ilECSSetting $a_server
  * @param object $a_ecs_content object with object settings
  * @param int $a_owner
  */
 public function createFromECSEContent(ilECSSetting $a_server, $a_ecs_content, $a_owner)
 {
     $this->create();
     // won't work for personal workspace
     $this->createReference();
     $this->setPermissions($a_server->getImportId());
     include_once './Services/WebServices/ECS/classes/class.ilECSUtils.php';
     $matchable_content = ilECSUtils::getMatchableContent($this->getECSObjectType(), $a_server->getServerId(), $a_ecs_content, $a_owner);
     include_once './Services/WebServices/ECS/classes/class.ilECSCategoryMapping.php';
     $this->putInTree(ilECSCategoryMapping::getMatchingCategory($a_server->getServerId(), $matchable_content));
     $this->updateFromECSContent($a_server, $a_ecs_content, $a_owner);
 }