// so we don't need to get the version from database. We can directly use static version
// calculated from bpel package directory name.
du.setVersion(du.getStaticVersion());
try {
du.compile();
} catch (CompilationException ce) {
String logMessage = "Deployment failed due to compilation issues.";
log.error(logMessage, ce);
throw new BPELDeploymentException(logMessage, ce);
}