}
@Override
public void run() {
SupportedLookAndFeel.NIMBUS.install();
SampleFileToXsdUi ui = new SampleFileToXsdUi(FileType.JSON);
ui.setReceiver(new Receiver<CreateXsdResult>() {
@Override
public void handle(CreateXsdResult result) {
System.out.println(result == null ? "null" : result.getMainXsd());
}
});
JsonToXsdController.install(ui);
QuickFrame frame = QuickFrame.show(ui, "JSON to XSD");
ui.setWaitService(frame);
}