throw new Exception(MISSING_META_PARAM);
}
String collection = (String)message.get(COLLECTION);
String docname = (String)message.get(NAME);
Collection col = getCollection( collection );
Hashtable result = new Hashtable();
if( !col.isMetaEnabled() )
{
// meta information is not enabled !
throw new Exception(MISSING_META_CONFIGURATION);
}
String metaxml = (String)message.get(META);
MetaData meta = new MetaData();
Document doc = DOMParser.toDocument( metaxml );
meta.streamFromXML(doc.getDocumentElement());
col.setDocumentMeta(docname,meta);
MetaData ret_meta = col.getDocumentMeta(docname);
Document ret_doc = new DocumentImpl();
ret_meta.streamToXML(ret_doc, true);
result.put( RESULT, TextWriter.toString( ret_doc ) );
return result;