code: public List<Deployment> startupDeploymentsFor(TargetDescription target) {
          Validate.notNull(target, "Target must be specified");
          List<Deployment> startupDeployments = new ArrayList<Deployment>();
          for (Deployment deployment : deployments) {
              DeploymentDescription desc = deployment.getDescription();
              if (desc.managed() && target.equals(desc.getTarget())) {
                  startupDeployments.add(deployment);
              }
          }
          // sort them by order
          Collections.sort(startupDeployments, new Comparator<Deployment>() {
              public int compare(Deployment o1, Deployment o2) {
                  return new Integer(o1.getDescription().getOrder()).compareTo(o2.getDescription().getOrder());
              }
          });
  
          return Collections.unmodifiableList(startupDeployments);
      }
docs: Get all {@link DeploymentDescription} defined to be deployed during Test startup for a specific {@link
  TargetDescription} ordered.
  
  @param target
  The Target to filter on
  
  @return A List of found {@link DeploymentDescription}. Will return a empty list if none are found.