* @param lines DMDL lines
* @return generated classes
*/
protected ModelLoader generateJava(String... lines) {
try {
List<VolatileJavaFile> sources = emit(new DmdlSourceFile(
Arrays.asList(emitDmdl(lines)),
Charset.forName("UTF-8")));
ClassLoader loaded = compile(sources);
return new ModelLoader(loaded);
} catch (Exception e) {