public static Set<Class<?>> scanPackage(ClassLoader classLoader, Package pkg) throws IOException {
        return scanPackage(classLoader, pkg.getName());
    }
Return the classes from the given package and subpackages using the supplied classloader

@param classLoader classloader to be used
@param pkg package to scan
@return set of found classes
@throws IOException
querydsl-codegen/src/main/java/com/querydsl/codegen/ClassPathUtils.java