private void addEventInfo(EventInfo info, Locale locale)
{
QName name = info.getName();
if (!eventDescriptions.containsKey(name))
{
EventDescription desc = WSRPTypeFactory.createEventDescription(name);
desc.setDescription(Utils.convertToWSRPLocalizedString(info.getDescription(), locale));
desc.setLabel(Utils.convertToWSRPLocalizedString(info.getDisplayName(), locale));
Collection<QName> aliases = info.getAliases();
if (ParameterValidation.existsAndIsNotEmpty(aliases))
{
desc.getAliases().addAll(aliases);
}
// todo: deal with type info...
eventDescriptions.put(name, desc);
eventReferenceCount.put(name, 1);
}