/**
  * @return array|EntityDescriptor[]
  */
 public function all()
 {
     if (null == $this->object) {
         $this->load();
     }
     if ($this->object instanceof EntityDescriptor) {
         return [$this->object];
     } else {
         return $this->object->getAllEntityDescriptors();
     }
 }