*/
public synchronized void preEnter ( FSMEnterEvent<TxState> event )
throws IllegalStateException
{
TxState state = event.getState ();
StateRecoverable<TxState> source = (StateRecoverable<TxState>) event.getSource ();
ObjectImage img = source.getObjectImage ( state );
//if img null: do nothing (BUG FIX 10041)
if ( img != null ) {
StateObjectImage simg = new StateObjectImage ( img );
TxState[] finalstates = source.getFinalStates ();
boolean delete = false;
for ( int i = 0; i < finalstates.length; i++ ) {
if ( state.equals ( finalstates[i] ) )
delete = true;
}
if ( !delete )
idToElementMap.put ( simg.getId (), simg );