@OnSave public void onSave() { if ( isReadOnly ) { view.alertReadOnly(); return; } new SaveOperationService().save( path, new CommandWithCommitMessage() { @Override public void execute( final String commitMessage ) { view.showBusyIndicator( CommonConstants.INSTANCE.Saving() ); enumService.call( getSaveSuccessCallback(), new HasBusyIndicatorDefaultErrorCallback( view ) ).save( path, view.getContent(), metadataWidget.getContent(), commitMessage ); } } ); }