if (configuration.endsWith(".jar")) {
trans = new JarToSystemDeploymentBundle();
} else {
trans = new DirectoryToSystemDeploymentBundle();
}
SystemDeploymentBundle sdb = (SystemDeploymentBundle) trans.transform(configuration);
try {
handleDeploymentBundle(sdb);
} catch (Exception e) {
throw new LifecycleException(new org.mule.config.i18n.Message(Messages.FAILED_TO_START_X, descriptor.getName()), e, this);
}