private static URI toUri(String fqname) {
        return URI.create("file:///" + fqname.replace(".", "/") + ".java");
    }
MemSourceFileObject defines a in-memory Java source file object

@author tiwe
querydsl-codegen-utils/src/main/java/com/querydsl/codegen/utils/MemSourceFileObject.java