public XModel getModel (String name)
{
XModel xModel = null;
try
{
XTasksSupplier xTasksSupplier =
(XTasksSupplier) UnoRuntime.queryInterface(
XTasksSupplier.class, mxDesktop);
XEnumerationAccess xEA = xTasksSupplier.getTasks();
XEnumeration xE = xEA.createEnumeration();
while (xE.hasMoreElements())
{
XTask xTask = (XTask) UnoRuntime.queryInterface(
XTask.class, xE.nextElement());