// If we are opening a subclass of BaseAttributes
// then param[0] will be a style class name
if (attributes instanceof BaseAttributes && params.length >= 1 &&
params[0] != null) {
BaseAttributes ba = (BaseAttributes)attributes;
ba.setStyleClass(params[0]);
}
// If we are opening a Pane param[1] will be the name
if (attributes instanceof PaneAttributes && params.length >= 2) {
PaneAttributes pa = (PaneAttributes)attributes;