public function getUrlPatternsAsArray()
    {

        // initialize the array for the URL patterns
        $urlPatterns = array();

        // prepare the URL patterns
        /** @var \AppserverIo\Appserver\Core\Api\Node\UrlPatternNode $urlPatternNode */
        foreach ($this->getUrlPatterns() as $urlPatternNode) {
            $urlPatterns[] = $urlPatternNode->__toString();
        }

        // return the array with the URL patterns
        return $urlPatterns;
    }