// add the model to the NameContainer of the dialog model
m_xDlgModelNameContainer.insertByName(sName, oButtonModel);
XControl xButtonControl = m_xDlgContainer.getControl(sName);
xButton = (XButton) UnoRuntime.queryInterface(XButton.class, xButtonControl);
// An ActionListener will be notified on the activation of the button...
xButton.addActionListener(_xActionListener);
} catch (com.sun.star.uno.Exception ex) {
/* perform individual exception handling here.
* Possible exception types are:
* com.sun.star.lang.IllegalArgumentException,
* com.sun.star.lang.WrappedTargetException,