protected void fire(SimpleFeature[] features, int eventType) {
if (listeners == null || listeners.isEmpty()) {
return;
}
CollectionEvent event = new CollectionEvent(this, features, eventType);
CollectionListener[] notify = (CollectionListener[]) listeners
.toArray(new CollectionListener[listeners.size()]);
for (CollectionListener listener : notify) {
try {
listener.collectionChanged(event);