Iterable<JavaFileObject> ret;
if (location == StandardLocation.PLATFORM_CLASS_PATH) {
ret = super.list(location, packageName, kinds, recurse);
}
else {
FileManager files = getFiles(location);
if (files != null) {
ret = files.list(packageName, kinds, recurse, new ArrayList<JavaFileObject>());
}
else {
ret = Collections.emptyList();
}
}