@Override public void execute() { Pair<List<? extends VpcOffering>, Integer> offerings = _vpcProvSvc.listVpcOfferings(getId(), getVpcOffName(), getDisplayText(), getSupportedServices(), isDefault, this.getKeyword(), getState(), this.getStartIndex(), this.getPageSizeVal()); ListResponse<VpcOfferingResponse> response = new ListResponse<VpcOfferingResponse>(); List<VpcOfferingResponse> offeringResponses = new ArrayList<VpcOfferingResponse>(); for (VpcOffering offering : offerings.first()) { VpcOfferingResponse offeringResponse = _responseGenerator.createVpcOfferingResponse(offering); offeringResponses.add(offeringResponse); } response.setResponses(offeringResponses, offerings.second()); response.setResponseName(getCommandName()); this.setResponseObject(response); }