EnunciateFreemarkerModel model = getModel();
if (this.splashPackage != null) {
PackageDeclaration packageDeclaration = Context.getCurrentEnvironment().getPackage(this.splashPackage);
if (packageDeclaration != null) {
debug("Including documentation for package %s as the splash documentation.", this.splashPackage);
model.setVariable("apiDoc", new DecoratedPackageDeclaration(packageDeclaration).getJavaDoc());
}
else {
warn("Splash package %s not found. No splash documentation included.", this.splashPackage);
}
}