* Create MetadataSection for each Data element, and add the
* MetadataSections to Metadata.
*/
private ArrayList processData(Data[] data, OutputForm outputForm,
String dialect, String identifier_value, SOAPFactory factory) throws MexException {
MetadataSection section=null;
ArrayList sections = new ArrayList();
if (data == null || data.length == 0) {
if (log.isDebugEnabled())
log
.debug("No result was returned from getData request for dialect,"
+ dialect
+ " Form: "
+ outputForm.getType()
+ ". No MetadataSection will be added!");
} else {
for (int k = 0; k < data.length; k++) {
section = createMetadataSection(outputForm, data[k].getData(),
factory, mexNamespaceValue);
section.setDialect(dialect);
identifier_value = data[k].getIdentifier();
if (identifier_value != null) {
section.setIdentifier(identifier_value);
}
sections.add(section);
}
}