cmargs2.Properties = props;
command.Name = "open";
command.Argument = cmargs2;
Object result = xCommandProcessor.execute(command, 0, null);
XDynamicResultSet xDynamicResultSet = (XDynamicResultSet)UnoRuntime.queryInterface(XDynamicResultSet.class, result);
XResultSet xResultSet = xDynamicResultSet.getStaticResultSet();
XRow xRow = (XRow)UnoRuntime.queryInterface(XRow.class, xResultSet);
// create the new folder 'folderName': first, check if it's already there
while(xResultSet.next()) {