// batch directors should not appear in the cfg panels
// GenericHMI.showModelForm(...) checks for the presence of this attribute.
// when present : cfg panel is not created
try {
((Attribute)d.getAdapter(null)).setContainer(null);
new BossanovaDirectorAdapter(d);
new Attribute(d, "__not_configurable");
} catch (final Exception e) {
e.printStackTrace();
}
return d;