Source:
<code>private byte[] createContentAccessDataPayload(Owner owner, Environment environment) throws IOException { Set<Product> containerSet = new HashSet<Product>(); List<Content> ownerContent = (List<Content>) ownerContentCurator.getContentByOwner(owner); Set<String> entitledProductIds = new HashSet<String>(); List<org.candlepin.model.dto.Product> productModels = new ArrayList<org.candlepin.model.dto.Product>(); Map<String, EnvironmentContent> promotedContent = getPromotedContent(environment); String contentPrefix = getContentPrefix(owner, environment); Product container = new Product(); Entitlement emptyEnt = new Entitlement(); Pool emptyPool = new Pool(); Product skuProduct = new Product(); Consumer emptyConsumer = new Consumer(); containerSet.add(container); container.setId("content_access"); <START> container.setName("Golden Ticket"); <END> for (Content c : ownerContent) { container.addContent(c, false); } emptyConsumer.setEnvironment(environment); emptyEnt.setPool(emptyPool); emptyEnt.setConsumer(emptyConsumer); emptyPool.setProduct(skuProduct); emptyPool.setStartDate(new Date()); emptyPool.setEndDate(new Date()); skuProduct.setName("Golden Ticket"); skuProduct.setId("content_access"); entitledProductIds.add("content-access"); org.candlepin.model.dto.Product productModel = v3extensionUtil.mapProduct(container, skuProduct, contentPrefix, promotedContent, emptyConsumer, emptyEnt, entitledProductIds); productModels.add(productModel); return v3extensionUtil.createEntitlementDataPayload(skuProduct, productModels, emptyEnt, contentPrefix, promotedContent); }</code><technical_language>"content access certificate" instead of Golden Ticket. I love name, exposing customers is confusing</technical_language>

Target:
private byte[] createContentAccessDataPayload(Owner owner, Environment environment) throws IOException { Set<Product> containerSet = new HashSet<Product>(); CandlepinQuery<Content> ownerContent = ownerContentCurator.getContentByOwner(owner); Set<String> entitledProductIds = new HashSet<String>(); List<org.candlepin.model.dto.Product> productModels = new ArrayList<org.candlepin.model.dto.Product>(); Map<String, EnvironmentContent> promotedContent = getPromotedContent(environment); String contentPrefix = getContentPrefix(owner, environment); Product container = new Product(); Entitlement emptyEnt = new Entitlement(); Pool emptyPool = new Pool(); Product skuProduct = new Product(); Consumer emptyConsumer = new Consumer(); containerSet.add(container); container.setId("content_access"); container.setName(" Content Access"); for (Content c : ownerContent) { container.addContent(c, false); } emptyConsumer.setEnvironment(environment); emptyEnt.setPool(emptyPool); emptyEnt.setConsumer(emptyConsumer); emptyPool.setProduct(skuProduct); emptyPool.setStartDate(new Date()); emptyPool.setEndDate(new Date()); skuProduct.setName("Content Access"); skuProduct.setId("content_access"); entitledProductIds.add("content-access"); org.candlepin.model.dto.Product productModel = v3extensionUtil.mapProduct(container, skuProduct, contentPrefix, promotedContent, emptyConsumer, emptyEnt, entitledProductIds); productModels.add(productModel); return v3extensionUtil.createEntitlementDataPayload(skuProduct, productModels, emptyEnt, contentPrefix, promotedContent); }