The sample variations dont work cause the CATALOGING_SCOPE is not imported:
for the samples to work the user has to add this to the PolicyFunctionsExtension.java
import static org.eclipse.edc.connector.contract.spi.offer.ContractDefinitionResolver.CATALOGING_SCOPE;