protected InitEntityMetaData processEntityElement(Element entityElement) throws ClassNotFoundException {
String entityClazz = entityElement.getAttributeValue("class");
String entityAlias = entityElement.getAttributeValue("alias");
String entityKey = entityElement.getAttributeValue("key");
InitEntityMetaData initEntity = new InitEntityMetaData(entityAlias, Class.forName(entityClazz), entityKey);
String inherits = entityElement.getAttributeValue("inherits");
if (!StringUtils.isEmpty(inherits)) {
for (String inherit : inherits.split(",")) {
InitEntityMetaData inheritEntity = factory.getInitEntityByAlias(inherit);
if (inheritEntity != null) {
for (InitPropertyMetaData property : inheritEntity.getProperties()) {
initEntity.addProperty(property);
}
} else {
log.error("Invalid alias " + inherit + " defined in inherits of entity " + initEntity.getAlias());
}