if (list.isEmpty()) {
return null;
}
ModelFileReaderFactory factory = list.get(0);
if (list.size() > 1) {
// show choose to select the actual factory
FactorySelectionDialog<ModelFileReaderFactory> cdialog =
new FactorySelectionDialog<>(null, list, null, "Select Format", true);