/* (non-Javadoc)
* @see org.jasig.portal.io.xml.crn.AbstractDom4jExporter#exportDataElement(java.lang.String)
*/
@Override
protected Element exportDataElement(String id) {
final FragmentDefinition fragmentDefinition = fragmentDefinitionDao.getFragmentDefinition(id);
if (fragmentDefinition == null) {
return null;
}
final org.dom4j.Document fragmentDefDoc = new org.dom4j.DocumentFactory().createDocument();
final Element fragmentDefElement = fragmentDefDoc.addElement("fragment-definition");
fragmentDefElement.addNamespace("dlm", "http://www.uportal.org/layout/dlm");
fragmentDefElement.addAttribute("script", "classpath://org/jasig/portal/io/import-fragment-definition_v3-1.crn");
fragmentDefinition.toElement(fragmentDefElement);
return fragmentDefElement;
}