public ServerPresentationModel presentationModel ( final String id , final String presentationModelType , final DTO dto ) { List < ServerAttribute > attributes = new ArrayList < ServerAttribute > ( ) ; for ( final Slot slot : dto . getSlots ( ) ) { final ServerAttribute result = new ServerAttribute ( slot . getPropertyName ( ) , slot . getValue ( ) , slot . getQualifier ( ) ) ; result . silently ( new Runnable ( ) { @ Override public void run ( ) { result . setValue ( slot . getValue ( ) ) ; } } ) ; attributes . add ( result ) ; } ServerPresentationModel model = new ServerPresentationModel ( id , attributes , this ) ; model . setPresentationModelType ( presentationModelType ) ; add ( model ) ; return model ; }
Create a presentation model on the server side add it to the model store and withContent a command to the client advising him to do the same .