discoveryLoader->loadAttributes() ?? new AttributeRegistry(); $interfaces = $this->discoveryLoader->loadInterfaces() ?? new InterfaceRegistry(); $templates = $this->discoveryLoader->loadTemplates() ?? new TemplateRegistry(); // Erstelle und returne DiscoveryRegistry mit geladenen Daten return new DiscoveryRegistry( attributes: $attributes, interfaces: $interfaces, templates: $templates ); } }