private static MLMethod createBAM() {
CreateBAMDialog dialog = new CreateBAMDialog(EncogWorkBench
.getInstance().getMainWindow());
if (dialog.process()) {
BAMPattern bam = new BAMPattern();
bam.setF1Neurons(dialog.getLayerACount().getValue());
bam.setF2Neurons(dialog.getLayerBCount().getValue());
return bam.generate();
} else
return null;
}