String pkg = location.getComponentSourcePackage();
String canonical = null;
List<SourceLoader> markupLoaders = Lists.newArrayList();
List<SourceLoader> javaLoaders = Lists.newArrayList();
if (pkg != null) {
ResourceSourceLoader rsl = new ResourceSourceLoader(pkg);
markupLoaders.add(rsl);
javaLoaders.add(rsl);
} else if (location.getComponentSourceDir() != null) {
File components = location.getComponentSourceDir();
if (!components.canRead() || !components.canExecute() || !components.isDirectory()) {