Converts the soap model instances into normal model instances.

@param soapModels the soap model instances to convert
@return the normal model instances
965272
public static List<CPSpecificationOption> toModels(
		CPSpecificationOptionSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CPSpecificationOption> models = new ArrayList<CPSpecificationOption>(soapModels.length);

		for (CPSpecificationOptionSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
1038439
public static List<CommerceTaxFixedRateAddressRel> toModels(
		CommerceTaxFixedRateAddressRelSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceTaxFixedRateAddressRel> models = new ArrayList<CommerceTaxFixedRateAddressRel>(soapModels.length);

		for (CommerceTaxFixedRateAddressRelSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
979606
public static List<CPRuleUserSegmentRel> toModels(
		CPRuleUserSegmentRelSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CPRuleUserSegmentRel> models = new ArrayList<CPRuleUserSegmentRel>(soapModels.length);

		for (CPRuleUserSegmentRelSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
788971
public RouteResponse withResponseModels(java.util.Map<String, String> responseModels) {
        setResponseModels(responseModels);
        return this;
    }
375763
public static CPDefinition toModel(CPDefinitionSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CPDefinition model = new CPDefinitionImpl();

		model.setUuid(soapModel.getUuid());
		model.setExternalReferenceCode(soapModel.getExternalReferenceCode());
		model.setDefaultLanguageId(soapModel.getDefaultLanguageId());
		model.setCPDefinitionId(soapModel.getCPDefinitionId());
		model.setGroupId(soapModel.getGroupId());
		model.setCompanyId(soapModel.getCompanyId());
		model.setUserId(soapModel.getUserId());
		model.setUserName(soapModel.getUserName());
		model.setCreateDate(soapModel.getCreateDate());
		model.setModifiedDate(soapModel.getModifiedDate());
		model.setCProductId(soapModel.getCProductId());
		model.setCPTaxCategoryId(soapModel.getCPTaxCategoryId());
		model.setProductTypeName(soapModel.getProductTypeName());
		model.setAvailableIndividually(soapModel.isAvailableIndividually());
		model.setIgnoreSKUCombinations(soapModel.isIgnoreSKUCombinations());
		model.setShippable(soapModel.isShippable());
		model.setFreeShipping(soapModel.isFreeShipping());
		model.setShipSeparately(soapModel.isShipSeparately());
		model.setShippingExtraPrice(soapModel.getShippingExtraPrice());
		model.setWidth(soapModel.getWidth());
		model.setHeight(soapModel.getHeight());
		model.setDepth(soapModel.getDepth());
		model.setWeight(soapModel.getWeight());
		model.setTaxExempt(soapModel.isTaxExempt());
		model.setTelcoOrElectronics(soapModel.isTelcoOrElectronics());
		model.setDDMStructureKey(soapModel.getDDMStructureKey());
		model.setPublished(soapModel.isPublished());
		model.setDisplayDate(soapModel.getDisplayDate());
		model.setExpirationDate(soapModel.getExpirationDate());
		model.setLastPublishDate(soapModel.getLastPublishDate());
		model.setSubscriptionEnabled(soapModel.isSubscriptionEnabled());
		model.setSubscriptionLength(soapModel.getSubscriptionLength());
		model.setSubscriptionType(soapModel.getSubscriptionType());
		model.setSubscriptionTypeSettings(soapModel.getSubscriptionTypeSettings());
		model.setMaxSubscriptionCycles(soapModel.getMaxSubscriptionCycles());
		model.setVersion(soapModel.getVersion());
		model.setStatus(soapModel.getStatus());
		model.setStatusByUserId(soapModel.getStatusByUserId());
		model.setStatusByUserName(soapModel.getStatusByUserName());
		model.setStatusDate(soapModel.getStatusDate());

		return model;
	}
64522
public static List<CPDAvailabilityEstimate> toModels(
		CPDAvailabilityEstimateSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CPDAvailabilityEstimate> models = new ArrayList<CPDAvailabilityEstimate>(soapModels.length);

		for (CPDAvailabilityEstimateSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
1248707
public static List<CPDefinitionLink> toModels(
		CPDefinitionLinkSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CPDefinitionLink> models = new ArrayList<CPDefinitionLink>(soapModels.length);

		for (CPDefinitionLinkSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
754153
public static List<CommerceVirtualOrderItem> toModels(
		CommerceVirtualOrderItemSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceVirtualOrderItem> models = new ArrayList<CommerceVirtualOrderItem>(soapModels.length);

		for (CommerceVirtualOrderItemSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
689975
public static List<CommerceDiscountRule> toModels(
		CommerceDiscountRuleSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceDiscountRule> models = new ArrayList<CommerceDiscountRule>(soapModels.length);

		for (CommerceDiscountRuleSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
373974
public static List<CommerceRegion> toModels(CommerceRegionSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceRegion> models = new ArrayList<CommerceRegion>(soapModels.length);

		for (CommerceRegionSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
87445
public static List<CommerceShippingFixedOption> toModels(
		CommerceShippingFixedOptionSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceShippingFixedOption> models = new ArrayList<CommerceShippingFixedOption>(soapModels.length);

		for (CommerceShippingFixedOptionSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
738083
public List<ModelServiceInstance> getModelInstances(String serviceName){
        ModelService service = getModelService(serviceName);
        if(service == null || service.getServiceInstances().size() == 0){
            return Collections.emptyList();
        }else{
            return new ArrayList<ModelServiceInstance>(service.getServiceInstances());
        }
    }
1192283
public static CPOptionCategory toModel(CPOptionCategorySoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CPOptionCategory model = new CPOptionCategoryImpl();

		model.setUuid(soapModel.getUuid());
		model.setCPOptionCategoryId(soapModel.getCPOptionCategoryId());
		model.setGroupId(soapModel.getGroupId());
		model.setCompanyId(soapModel.getCompanyId());
		model.setUserId(soapModel.getUserId());
		model.setUserName(soapModel.getUserName());
		model.setCreateDate(soapModel.getCreateDate());
		model.setModifiedDate(soapModel.getModifiedDate());
		model.setTitle(soapModel.getTitle());
		model.setDescription(soapModel.getDescription());
		model.setPriority(soapModel.getPriority());
		model.setKey(soapModel.getKey());
		model.setLastPublishDate(soapModel.getLastPublishDate());

		return model;
	}
764076
public static CommerceNotificationQueueEntry toModel(
		CommerceNotificationQueueEntrySoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceNotificationQueueEntry model = new CommerceNotificationQueueEntryImpl();

		model.setCommerceNotificationQueueEntryId(soapModel.getCommerceNotificationQueueEntryId());
		model.setGroupId(soapModel.getGroupId());
		model.setCompanyId(soapModel.getCompanyId());
		model.setUserId(soapModel.getUserId());
		model.setUserName(soapModel.getUserName());
		model.setCreateDate(soapModel.getCreateDate());
		model.setModifiedDate(soapModel.getModifiedDate());
		model.setCommerceNotificationTemplateId(soapModel.getCommerceNotificationTemplateId());
		model.setFrom(soapModel.getFrom());
		model.setFromName(soapModel.getFromName());
		model.setTo(soapModel.getTo());
		model.setToName(soapModel.getToName());
		model.setCc(soapModel.getCc());
		model.setBcc(soapModel.getBcc());
		model.setSubject(soapModel.getSubject());
		model.setBody(soapModel.getBody());
		model.setPriority(soapModel.getPriority());
		model.setSent(soapModel.isSent());
		model.setSentDate(soapModel.getSentDate());

		return model;
	}
592336
public Route withRequestModels(java.util.Map<String, String> requestModels) {
        setRequestModels(requestModels);
        return this;
    }
370795
public static List<CommerceTierPriceEntry> toModels(
		CommerceTierPriceEntrySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceTierPriceEntry> models = new ArrayList<CommerceTierPriceEntry>(soapModels.length);

		for (CommerceTierPriceEntrySoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
831921
@Override
    protected ModelService getModelService(String serviceName){
        ModelService service = getCache().get(serviceName);
        if (service == null) {
            getCache().putIfAbsent(serviceName,super.getModelService(serviceName));
            service = getCache().get(serviceName);
        }
        return service;
    }