TypedActor refinement = refinements[i];
// By default, if no other state or transition refers
// to this refinement, then we will remove it.
boolean removeIt = true;
Iterator states = master.entityList(State.class)
.iterator();
while (removeIt && states.hasNext()) {
State state = (State) states.next();
TypedActor[] stateRefinements = null;