public WSRPConsumer createConsumerFrom(ProducerInfo producerInfo, boolean putInCache)
{
// make sure we set the registry after loading from DB since registry is not persisted.
// producerInfo.setRegistry(this);
final WSRPConsumerImpl consumer = createAndActivateIfNeeded(producerInfo);
// cache consumer
if (putInCache)
{
consumerCache.putConsumer(producerInfo.getId(), consumer);