final Publisher publisher = portalService.getComponentManager().getEventManager().getPublisher();
for(int i=0; i<names.length; i++) {
final String path = names[i];
final String value = parameters.getParameter(path, null );
if ( value != null && value.trim().length() > 0 ) {
final Event event = new CopletJXPathEvent(portalService.getComponentManager().getProfileManager().getCopletInstanceData(copletId),
path,
value);
publisher.publish(event);
}
}