if( state.status().equals( EntityStatus.NEW ) )
{
Preferences entityPrefs = root.node( state.identity().identity() );
writeEntityState( state, entityPrefs, unitofwork.identity(), unitofwork.currentTime() );
}
else if( state.status().equals( EntityStatus.UPDATED ) )
{
Preferences entityPrefs = root.node( state.identity().identity() );
writeEntityState( state, entityPrefs, unitofwork.identity(), unitofwork.currentTime() );
}
else if( state.status().equals( EntityStatus.REMOVED ) )