/** * Producer method to make this into a managed bean, so that CDI can use the other * producer methods. * @return */ @Produces public static PortletArtifactProducer getPAP() { PortletArtifactProducer pap = producers.get(); if (pap == null) { pap = new PortletArtifactProducer(); producers.set(pap); if (isTrace) { StringBuilder txt = new StringBuilder(80); txt.append("Created new empty PortletArtifactProducer"); txt.append(", ThreadId=").append(Thread.currentThread().getId()); LOG.trace(txt.toString()); } } return producers.get(); }