site = new File(siteDir);
if(!site.exists() || !site.isDirectory()){
throw new IllegalArgumentException("Site is not a valid directory.");
}
new ContextImpl().initialize();
siteManager = Application.getContext().getSiteManager();
sourceParser = Application.getContext().getSourceParser();
}