l.log(Type.WARN, "Found both source file and inline template, using source file");
}
InputStream stream = getTemplateResource(context, toGenerate, l, marker.source());
if (stream == null) {
l.log(Type.ERROR, "No data could be loaded - no data at path " + marker.source());
throw new UnableToCompleteException();
}
template = Util.readStreamAsString(stream);
} else if (marker.value().length() != 0) {
template = marker.value();