public function getHosts()
    {
        if (empty($this->hosts) && isset($this->configuration['hosts'])) {
            foreach ($this->configuration['hosts'] as $host) {
                $this->hosts[] = ObjectFactory::getInstance()->newInstance(Host::class, $host);
            }
        }

        return $this->hosts;
    }