if (!events.isEmpty())
{
produced = new HashMap<QName, EventInfo>(events.size());
for (QName event : events)
{
EventInfo desc = originatingProducer.getInfoForEvent(event);
produced.put(event, desc);
}
}
events = portletDescription.getHandledEvents();
if (!events.isEmpty())
{
consumed = new HashMap<QName, EventInfo>(events.size());
for (QName event : events)
{
EventInfo desc = originatingProducer.getInfoForEvent(event);
consumed.put(event, desc);
}
}
return new WSRPEventingInfo(produced, consumed);