@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public BundleScheduleRequest getScheduleRequest(Subject subject, int resourceDeploymentId,
boolean isCleanDeployment, boolean isRevert) throws Exception {
// make sure the deployment contains the info required by the schedule service
BundleResourceDeploymentCriteria brdc = new BundleResourceDeploymentCriteria();
brdc.addFilterId(resourceDeploymentId);
brdc.fetchResource(true);
brdc.fetchBundleDeployment(true);
List<BundleResourceDeployment> resourceDeployments = bundleManager.findBundleResourceDeploymentsByCriteria(
subject, brdc);
if (null == resourceDeployments || resourceDeployments.isEmpty()) {
throw new IllegalArgumentException("Can not deploy using invalid resourceDeploymentId ["
+ resourceDeploymentId + "].");