public function createAssemblyFromTemplate(core_kernel_classes_Resource $deliveryTemplate) {
    
        $assemblyClass = $this->getRootClass();
    
        $content = DeliveryTemplateService::singleton()->getContent($deliveryTemplate);
        if (is_null($content)) {
            throw new EmptyDeliveryException('Delivery '.$deliveryTemplate->getUri().' has no content');
        }
    
        $props = $deliveryTemplate->getPropertiesValues(array(
            OntologyRdfs::RDFS_LABEL,
            TAO_DELIVERY_RESULTSERVER_PROP,
            TAO_DELIVERY_MAXEXEC_PROP,
            TAO_DELIVERY_START_PROP,
            TAO_DELIVERY_END_PROP,
            TAO_DELIVERY_EXCLUDEDSUBJECTS_PROP
        ));
        $props[PROPERTY_COMPILEDDELIVERY_DELIVERY] = array($deliveryTemplate);
    
        return $this->createAssemblyByContent($assemblyClass, $content, $props);

    }