Converts the soap model instances into normal model instances.

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

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

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

		return models;
	}
1061809
public static List<CommerceShippingMethod> toModels(
		CommerceShippingMethodSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
1344578
public static List<CommerceDiscount> toModels(
		CommerceDiscountSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
414652
public static List<CommercePriceListAccountRel> toModels(
		CommercePriceListAccountRelSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

		for (CommercePriceListAccountRelSoap 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;
    }
931837
public static CommercePriceEntry toModel(CommercePriceEntrySoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommercePriceEntry model = new CommercePriceEntryImpl();

		model.setUuid(soapModel.getUuid());
		model.setExternalReferenceCode(soapModel.getExternalReferenceCode());
		model.setCommercePriceEntryId(soapModel.getCommercePriceEntryId());
		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.setCommercePriceListId(soapModel.getCommercePriceListId());
		model.setCPInstanceUuid(soapModel.getCPInstanceUuid());
		model.setCProductId(soapModel.getCProductId());
		model.setPrice(soapModel.getPrice());
		model.setPromoPrice(soapModel.getPromoPrice());
		model.setHasTierPrice(soapModel.isHasTierPrice());
		model.setLastPublishDate(soapModel.getLastPublishDate());

		return model;
	}
727039
public static CommerceAddressRestriction toModel(
		CommerceAddressRestrictionSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceAddressRestriction model = new CommerceAddressRestrictionImpl();

		model.setCommerceAddressRestrictionId(soapModel.getCommerceAddressRestrictionId());
		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.setClassNameId(soapModel.getClassNameId());
		model.setClassPK(soapModel.getClassPK());
		model.setCommerceCountryId(soapModel.getCommerceCountryId());

		return model;
	}
1065071
public static List<CommerceTaxFixedRate> toModels(
		CommerceTaxFixedRateSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
535447
public static CommerceNotificationTemplateUserSegmentRel toModel(
		CommerceNotificationTemplateUserSegmentRelSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceNotificationTemplateUserSegmentRel model = new CommerceNotificationTemplateUserSegmentRelImpl();

		model.setCommerceNotificationTemplateUserSegmentRelId(soapModel.getCommerceNotificationTemplateUserSegmentRelId());
		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.setCommerceUserSegmentEntryId(soapModel.getCommerceUserSegmentEntryId());

		return model;
	}
556763
public static CPMeasurementUnit toModel(CPMeasurementUnitSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CPMeasurementUnit model = new CPMeasurementUnitImpl();

		model.setUuid(soapModel.getUuid());
		model.setCPMeasurementUnitId(soapModel.getCPMeasurementUnitId());
		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.setName(soapModel.getName());
		model.setKey(soapModel.getKey());
		model.setRate(soapModel.getRate());
		model.setPrimary(soapModel.isPrimary());
		model.setPriority(soapModel.getPriority());
		model.setType(soapModel.getType());
		model.setLastPublishDate(soapModel.getLastPublishDate());

		return model;
	}
709311
public static List<CPRuleAssetCategoryRel> toModels(
		CPRuleAssetCategoryRelSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

		for (CPRuleAssetCategoryRelSoap 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;
	}
236570
public static CommerceShippingMethod toModel(
		CommerceShippingMethodSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceShippingMethod model = new CommerceShippingMethodImpl();

		model.setCommerceShippingMethodId(soapModel.getCommerceShippingMethodId());
		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.setName(soapModel.getName());
		model.setDescription(soapModel.getDescription());
		model.setImageId(soapModel.getImageId());
		model.setEngineKey(soapModel.getEngineKey());
		model.setPriority(soapModel.getPriority());
		model.setActive(soapModel.isActive());

		return model;
	}
1038923
public static List<CPOptionCategory> toModels(
		CPOptionCategorySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
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;
	}
481222
public static List<CommerceUserSegmentCriterion> toModels(
		CommerceUserSegmentCriterionSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
73287
public static CommerceUserSegmentEntry toModel(
		CommerceUserSegmentEntrySoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceUserSegmentEntry model = new CommerceUserSegmentEntryImpl();

		model.setCommerceUserSegmentEntryId(soapModel.getCommerceUserSegmentEntryId());
		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.setName(soapModel.getName());
		model.setKey(soapModel.getKey());
		model.setActive(soapModel.isActive());
		model.setSystem(soapModel.isSystem());
		model.setPriority(soapModel.getPriority());

		return model;
	}