final Properties expandProps = new Properties();
expandProps.setProperty("rtconfig.dir", rtConfigDir.getAbsolutePath());
expandProps.setProperty("app.contextpath", contextPath);
expandProps.setProperty("deployment.name", deploymentName);
try {
metaProperties.expand(expandProps); // Expand ${} properties
} catch (final Throwable t) {
log.fatal("Failed to expand properties in meta file '"
+ metaFile.getAbsolutePath() + "'", t);
throw new IllegalStateException(
"Failed to expand properties in meta file '"