String location=source.getLocation().trim();
File baseDir=new File(location);
if(!baseDir.exists()) {
throw new FacesExceptionEx(null, "Import directory {0} does not exist", location);
}
FileVFS vfs=new FileVFS(baseDir);
return vfs;
} else if(StringUtil.equals(source.getSource(), "github")) {
String location=source.getLocation().trim();
if(StringUtil.isEmpty(location)) {
throw new FacesExceptionEx(null, "GitHub: Location is empty", location);