protected Producer getProducer(String producerID) throws WSRPException {
ProducerRegistry producerRegistry = getConsumerEnvironment().getProducerRegistry();
Producer producer = producerRegistry.getProducer(producerID);
if (producer == null) {
// Create producer and register it
RegistrationData regData = new RegistrationData();
regData.setConsumerName("uPortal WSRP Consumer");
regData.setConsumerAgent("uPortal WSRP Consumer");
producer = new ProducerImpl(producerID, markupUrl, serviceDescUrl, regUrl, mgmtUrl, regData);
producerRegistry.addProducer(producer);
}
//System.out.println("returning producer=" + producer.toString());
return producer;