public function getAnalyticsAsArray()
    {

        // initialize the array for the analytics
        $analytics = array();

        // iterate over the analytics nodes and sort them into an array
        /** @var \AppserverIo\Appserver\Core\Api\Node\AnalyticNode $analyticNode */
        foreach ($this->getAnalytics() as $analyticNode) {
            // restructure to an array
            $analytics[] = array(
                'uri' => $analyticNode->getUri(),
                'connectors' => $analyticNode->getConnectorsAsArray()
            );
        }

        // return the array
        return $analytics;
    }