if(!message.containsKey(META)) {
throw new Exception(MISSING_META_PARAM);
}
String collection = (String)message.get(COLLECTION);
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.setCollectionMeta(meta);
MetaData ret_meta = col.getCollectionMeta();
Document ret_doc = new DocumentImpl();
ret_meta.streamToXML(ret_doc, true);
result.put( RESULT, TextWriter.toString( ret_doc ) );
return result;