* Generate Java model classes from emitted DMDL and returns compile and load results.
* @return generated classes
*/
protected ModelLoader generateJava() {
try {
List<VolatileJavaFile> files = emit(new DmdlSourceDirectory(
folder.getRoot(),
Charset.forName("UTF-8"),
Pattern.compile(".*\\.dmdl"),
Pattern.compile("\\..*")));
ClassLoader loaded = compile(files);