try {
para = (XInterface) AnyConverter.toObject(
new Type(XInterface.class),oEnum.nextElement());
XEnumerationAccess oEnumB = (XEnumerationAccess)
UnoRuntime.queryInterface( XEnumerationAccess.class, para );
XEnumeration oEnum2 = oEnumB.createEnumeration();
port = (XInterface) AnyConverter.toObject(
new Type(XInterface.class),oEnum2.nextElement());
} catch ( com.sun.star.lang.WrappedTargetException e ) {
e.printStackTrace(log);
log.println("Error: exception occured...");