// get the bundle facet object that will process the bundle and call it to start the deployment
int facetMethodTimeout =
4 * 60 * 60 * 1000; // 4 hours is given to the bundle plugin to do its thing
BundleFacet bundlePluginComponent = getBundleFacet(bundleHandlerResourceId, facetMethodTimeout);
BundleDeployResult result = bundlePluginComponent.deployBundle(deployRequest);
if (result.isSuccess()) {
completeDeployment(resourceDeployment, BundleDeploymentStatus.SUCCESS, deploymentMessage);
} else {
completeDeployment(resourceDeployment, BundleDeploymentStatus.FAILURE,
result.getErrorMessage());