if (object instanceof Entity) {
if (!values.contains((Entity) object)) {
values.add((Entity) object);
}
} else if (object instanceof State) {
State state = (State) object;
if (state.message != null && state.trace != null) {
hasError = true;
}
}
return true;