}
public DocWrapper getDocWrapper() {
try {
if ( col.getCollectionType() == CollectionClient.TYPE_DOCUMENTS )
return new DocWrapper(col.getDocumentAsText(id), col, null, id, true);
else {
return new DocWrapper(new String(col.getValue(id)), col, null, id, true, true);
}
}
catch ( Exception e ) {
Admin.getInstance().addMessage(e.toString());
return null;