ArrayList<Capability> capabilities = Lists.newArrayList();
Capability capa1 = new Capability(
projectId, attributes.get(0).getAttributeId(), components.get(1).getComponentId());
capa1.setName("Credit card processing takes less than 5 seconds");
capa1.setFailureRate(FailureRate.OFTEN);
capa1.addLabel("external");
capa1.addLabel("load test");
capa1.setDescription("Order is completed from clicking 'ORDER NOW' to success page.");
capa1.setUserImpact(UserImpact.MINIMAL);
capa1.setCapabilityId(projectService.createCapability(capa1).getCapabilityId());
capabilities.add(capa1);