@Override
    public void delete(final String sagaId) {
        checkNotNull(sagaId, "Saga id key must be set.");

        synchronized (sync) {
            StateStorageItem removedItem = storedStates.remove(sagaId);
            if (removedItem != null) {
                removeInstancesForItem(removedItem);
            }
        }
    }
@ Override public void delete ( final String sagaId ) { checkNotNull ( sagaId , "Saga id key must be set." ) ; synchronized ( sync ) { StateStorageItem removedItem = storedStates . remove ( sagaId ) ; if ( removedItem != null ) { removeInstancesForItem ( removedItem ) ; } } }
{@inheritDoc}