public function compile() {
        
        $test = $this->getResource()->getOnePropertyValue(new core_kernel_classes_Property(PROPERTY_DELIVERYCONTENT_TEST));
        if (is_null($test)) {
            throw new EmptyDeliveryException($this->getResource());
        }
        return $this->subCompile($test);
    }