}
//attempt to set the label text if possible as defined by the specs
//should not set the labels of block stubs because their labels are determined by their parent
if ((block.isLabelEditable() || block.getBlockLabel().equals(label))) {
if (label != null && !(block instanceof BlockStub)) {
if (newblock.isLabelEditable() && !newblock.labelMustBeUnique()) {
newblock.setBlockLabel(label);
}
}
}
//return renderable block