}
public Memento createMementoFromState(String stateMachineId, State state) {
State name = nameToState.get(state.getName());
if(name == null)
throw new IllegalArgumentException(this + "This state does not exist in this statemachine.  name="+name);
<BUG>return new StateMachineState(rawMapId, stateMachineId, state, this);
</BUG>
}
<BUG>public synchronized State createState(String name)
{</BUG>
StateImpl state = nameToState.get(name);

}
public Memento createMementoFromState(String stateMachineId, State state) {
State name = nameToState.get(state.getName());
if(name == null)
throw new IllegalArgumentException(this + "This state does not exist in this statemachine.  name="+name);
return new StateMachineState(executor, rawMapId, stateMachineId, state, this);
}
public State createState(String name)
{
StateImpl state = nameToState.get(name);
