/**
  * @param string $entityId
  *
  * @return EntityDescriptor|null
  */
 public function get($entityId)
 {
     if (null == $this->object) {
         $this->load();
     }
     if ($this->object instanceof EntityDescriptor) {
         if ($this->object->getEntityID() == $entityId) {
             return $this->object;
         } else {
             return null;
         }
     } else {
         return $this->object->getByEntityId($entityId);
     }
 }