public function getAssembliesByTemplate(core_kernel_classes_Resource $deliveryTemplate, $activeOnly = false) {
        $searchArray = $activeOnly
        ? array(
            PROPERTY_COMPILEDDELIVERY_DELIVERY => $deliveryTemplate
        )
        : array(
            PROPERTY_COMPILEDDELIVERY_DELIVERY => $deliveryTemplate,
        );
        return $this->getRootClass()->searchInstances($searchArray, array('like' => 'false', 'recursive' => true));
    }