public String doContentTypeDefinitions() throws Exception
{
List contentTypeDefinitions = getContentTypeDefinitions();
Document doc = DocumentHelper.createDocument();
Element root = doc.addElement("definitions");
TransactionHistoryController transactionHistoryController = TransactionHistoryController.getController();
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())