super();
}
public XmlDocument toXML(final String baseName) {
Assert.notEmpty(baseName, "baseName");
ClassFinder classFinder = new ClassFinderImpl(baseName, new AnnotationClassFilter(Entity.class));
XmlDocument document = new XmlDocument(AnnotationToXML.XML_NAMESPACE, AnnotationToXML.XML_LOCATION, AnnotationToXML.XML_ROOT);
XmlElement entityMappings = document.getRoot();
for (Class<?> clazz : classFinder.getClasses()) {
XmlElement entity = entityMappings.addElement("entity");
entity.setAttribute("class", clazz.getCanonicalName());
entity.setAttribute("access", "PROPERTY");
entity.setAttribute("metadata-complete", "true");