ProfileManager profileManager = service.getComponentManager().getProfileManager();
instances = profileManager.getCopletInstanceData(data);
if ( instances != null && e instanceof ChangeCopletsJXPathEvent ) {
EventManager eventManager = service.getComponentManager().getEventManager();
final String path = ((ChangeCopletsJXPathEvent)e).getPath();
final Object value = ((ChangeCopletsJXPathEvent)e).getValue();
Iterator i = instances.iterator();
while ( i.hasNext() ) {
CopletInstanceData current = (CopletInstanceData) i.next();
Event event = new CopletJXPathEvent(current, path, value);
eventManager.send(event);
}
}
}