} else {
Path.Absolute resolvedPath = owner.resolvePath(path);
Writer writer = null;
try {
FileObject classFile = owner.application.getProcessingContext().createSourceFile(resolvedPath.getName(), elements);
writer = classFile.openWriter();
emitClass(provider, template, elements, writer);
classCache.put(path, classFile);
log.info("Generated template class " + path + " as " + classFile.toUri() +
" with originating elements " + Arrays.asList(elements));
}