if (simInstrFacs != null) {
instrFacs.addAll(simInstrFacs);
}
FactorySelectionDialog<Factory<?>> diag =
new FactorySelectionDialog(null, instrFacs, null,
"Select Instrumentation", true);
diag.setVisible(true);
if (diag.isOkButtonPressed()) {
List<ParameterizedFactory<Factory<?>>> selected =
diag.getSelectedFactoriesAndParameters();
ParameterizedFactory<Factory<?>> sel = new ParameterizedFactory<>();
if (selected.size() > 0) {
sel = selected.get(0);