for(Iterator i=contentTypeDefinitions.iterator();i.hasNext();)
{
ContentTypeDefinitionVO vo = (ContentTypeDefinitionVO) i.next();
if(vo.getType().compareTo(ContentTypeDefinitionVO.CONTENT)==0)
{
TransactionHistoryVO transactionHistoryVO = transactionHistoryController.getLatestTransactionHistoryVOForEntity(ContentTypeDefinitionImpl.class, vo.getContentTypeDefinitionId());
Element definition = DocumentHelper.createElement("definition");
definition
.addAttribute("id", "" + vo.getContentTypeDefinitionId())
.addAttribute("type", "" + vo.getType())
.addAttribute("name", vo.getName())
;
if(transactionHistoryVO!=null)
definition.addAttribute("mod", formatDate(transactionHistoryVO.getTransactionDateTime()));
Element schemaValue = definition.addElement("schemaValue");
schemaValue.addCDATA(vo.getSchemaValue());
root.add(definition);
}