@Override
    public Enumeration<URL> getResources(String name) throws IOException {
        List<URL> retValue;
        retValue = Collections.list(super.getResources(name));
        JavaFileObject jfo = getFileObject(name);
        if (jfo != null) {
            retValue.add(jfo.toUri().toURL());
        }
        return Collections.enumeration(retValue);
    }
MemClassLoader is a mmemory based implementation of the ClassLoader interface

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