throw new SAXException("Error by setting up the transformation. Please fix the calling code.");
if (lang==null)
lang=pub.getDefaultLanguage();
try {
Document document = pub.getArea(area).getDocument(uuid, lang);
MetaData metaData = document.getMetaData(ns);
String [] returnValue=metaData.getValues(key);
if (returnValue.length>1){
for (int i = 0; i < returnValue.length; i++) {
AttributesImpl attributes = new AttributesImpl();
attributes.addAttribute("", VALUE_ELEMENT, VALUE_ELEMENT, "CDATA", returnValue[i]);
attributes.addAttribute("", ELEMENT_ATT, ELEMENT_ATT, "CDATA", key);