}
try {
ObjMetaDataAndContent both = (ObjMetaDataAndContent)o;
ObjMetadata meta = both.getMeta();
ObjMetacontent content = both.getMetacontent();
result.put(METADATA_ID, meta.getObjMetaId());
result.put(NAME, meta.getName());
result.put(TYPE, meta.getDataTypeCode());
if (content != null) {
String contentText = new String(content.getContent(),"ISO-8859-1");
result.put(BIOBJECT_ID, content.getBiobjId());
result.put(SUBOBJECT_ID, content.getSubobjId() != null ? content.getSubobjId() : -1);
result.put(TEXT,contentText );
result.put(CREATION_DATE, content.getCreationDate());
result.put(CHANGE_DATE, content.getLastChangeDate());
} else {
result.put(BIOBJECT_ID, -1);
result.put(SUBOBJECT_ID, -1);
result.put(TEXT, "");
result.put(CREATION_DATE, "");