ObjMetacontent objMetacontent = (ObjMetacontent) DAOFactory.getObjMetacontentDAO().loadObjMetacontent(objMetadata.getObjMetaId(), biObj.getId(), null);
if(objMetacontent != null){
Integer binId = objMetacontent.getBinaryContentId();
String uid = createUidDocument(String.valueOf(binId.intValue()), String.valueOf(biObj.getId().intValue()));
Integer idDomain = objMetadata.getDataType();
Domain domain = DAOFactory.getDomainDAO().loadDomainById(idDomain);
String binIdString = String.valueOf(binId.intValue());
byte[] content = objMetacontent.getContent();
String htmlContent = null;
if (domain.getValueCd().equalsIgnoreCase(LONG_TEXT)) {
bais = new ByteArrayInputStream(content);
JTidyHTMLHandler htmlHandler = new JTidyHTMLHandler();
htmlContent = htmlHandler.getContent(bais);
bais.close();
}