for (Class<?> entityClass : entityClasses) {
model.addEntity(entityClass);
}
for (Class<?> mapEntityClass : mapEntityClasses) {
if (!MapEntity.class.isAssignableFrom(mapEntityClass)) {
throw new ModelParseException(mapEntityClass + " must extend " + MapEntity.class);
}
model.addMapEntity((Class<? extends MapEntity>) mapEntityClass);
}
return model;