}
}
public void fireEntityEvent(LogicalProcess lp, int eventType) {
if (listeners.size() > 0) {
EntityEvent event = new EntityEvent(lp, eventType);
Iterator<EntityEventListener> listenerIterator = listeners.iterator();
while (listenerIterator.hasNext()) {
EntityEventListener listener = listenerIterator.next();
switch (eventType) {
case EntityEvent.INITIALIZED: {