public function getLocation($condition)
    {
        // iterate over all locations
        /** @var \AppserverIo\Appserver\Core\Api\Node\LocationNode $location */
        foreach ($this->getLocations() as $location) {
            // if we found one with a matching condition we will return it
            if ($location->getCondition() === $condition) {
                return $location;
            }
        }

        // Still here? Seems we did not find anything
        return false;
    }