m_document.getOrb().createInstance( sQualifiedComponentName ) );
// insert the model into the form component hierarchy, if the caller gave us a location
if ( null != _parentForm )
{
XIndexContainer parentForm = null;
if ( _parentForm instanceof XIndexContainer )
parentForm = (XIndexContainer)_parentForm;
else
parentForm = UnoRuntime.queryInterface( XIndexContainer.class, _parentForm );
parentForm.insertByIndex( parentForm.getCount(), xModel );
}
// knitt them
xShape.setControl( xModel );