PropertyValue aConnection = new PropertyValue();
aConnection.Name = "ActiveConnection";
aConnection.Value = _xConnection;
args[1] = aConnection;
XReportDefinition xReportDefinition = null;
final XMultiServiceFactory xMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, /* getRecordParser().getReportDocuments() */ _aDoc);
try
{
final Object aObj = xMSF.createInstanceWithArguments("com.sun.star.sdb.DocumentDefinition", args);
final XPropertySet aDocumentDefinition = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aObj);