CollectionClient col = (CollectionClient)obj;
try {
BodyContent content = getBodyContent();
String doc = content.getString().trim();
String id = col.insertDocumentAsText(doc);
if ( name != null )
pageContext.setAttribute(name, id);
}
catch ( Exception e ) {
throw new JspException("Can't insert Document on Collection '" + collection + "'", e);