RepositoryFile metadata =
unifiedRepository.getFile( etcMondrian + RepositoryFile.SEPARATOR + catalogName + RepositoryFile.SEPARATOR
+ "metadata" ); //$NON-NLS-1$
if ( metadata != null ) {
DataNode metadataNode =
unifiedRepository.getDataForRead( metadata.getId(), NodeRepositoryFileData.class ).getNode();
String datasourceInfo = metadataNode.getProperty( "datasourceInfo" ).getString(); //$NON-NLS-1$
String definition = metadataNode.getProperty( "definition" ).getString(); //$NON-NLS-1$
datasourcesXML.append( "<Catalog name=\"" + encoder.encodeForXML( catalogName ) + "\">\n" ); //$NON-NLS-1$ //$NON-NLS-2$
datasourcesXML
.append( "<DataSourceInfo>" + encoder.encodeForXML( datasourceInfo ) + "</DataSourceInfo>\n" ); //$NON-NLS-1$ //$NON-NLS-2$
datasourcesXML.append( "<Definition>" + encoder.encodeForXML( definition ) + "</Definition>\n" ); //$NON-NLS-1$ //$NON-NLS-2$