contributionHelper.releaseLocks(contributions); throw new AssemblyException(context.getErrors()); contributionHelper.releaseLocks(contributions); throw e; } catch (AllocationException e) { contributionHelper.releaseLocks(contributions); throw new DeploymentException("Error deploying composite", e); } catch (PolicyResolutionException e) { contributionHelper.releaseLocks(contributions); throw new DeploymentException("Error deploying composite", e);