metadataString = StringUtils.trim(metadataString);
String definitions[] = StringUtils.split(metadataString, ";");
for (String def : definitions) {
def = StringUtils.trim(def);
String components[] = StringUtils.split(def, ":");
OrcaReportMetadata metaData = new OrcaReportMetadata();
metaData.setKey(StringUtils.trim(components[0]));
if (components.length > 1) {
String valDef = StringUtils.trim(components[1]);
metaData.setValue(valDef);
if (StringUtils.contains(valDef, " as ")) {
valDef = StringUtils.replace(valDef, " as ", " => ");
String split[] = StringUtils.split(valDef, "=>");
metaData.setVar(StringUtils.deleteWhitespace(split[1]));
metaData.setValue(StringUtils.deleteWhitespace(split[0]));
}
}
metaDataList.add(metaData);
}
}