// Check to make certain the file is a valid dashboard package, and
// is compatible with this version of the dashboard.
boolean upgradeNeeded = true;
try {
DashPackage dashPackage = getDashPackageForFile(templateFile);
String currentDashVersion = (String) env.get(
WebServer.PACKAGE_ENV_PREFIX + "pspdash");
if (dashPackage.isIncompatible(currentDashVersion)) {
String requiredVersion = dashPackage.requiresDashVersion;
if (requiredVersion.endsWith("+")) {
requiredVersion = requiredVersion.substring(0,
requiredVersion.length() - 1);
return resources.format(