public void commandsForDomainModel ( final CommandsForDomainModelCallback callback ) { if ( this . root == null ) { topology . onError ( new SynchronizeFXException ( "Request to create necessary commands to reproduce the domain model " + " but the root object of the domain model is not set." ) ) ; return ; } try { modelWalkingSynchronizer . startModelWalking ( ) ; creator . commandsForDomainModel ( this . root , callback ) ; modelWalkingSynchronizer . finishedModelWalking ( ) ; } catch ( final SynchronizeFXException e ) { topology . onError ( e ) ; } }
This method creates the commands necessary to reproduce the entire domain model .