Converts the soap model instances into normal model instances.

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

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

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

		return models;
	}
736684
public static List<CPAttachmentFileEntry> toModels(
		CPAttachmentFileEntrySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
1213478
public static CPDefinitionOptionValueRel toModel(
		CPDefinitionOptionValueRelSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CPDefinitionOptionValueRel model = new CPDefinitionOptionValueRelImpl();

		model.setUuid(soapModel.getUuid());
		model.setCPDefinitionOptionValueRelId(soapModel.getCPDefinitionOptionValueRelId());
		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.setCPDefinitionOptionRelId(soapModel.getCPDefinitionOptionRelId());
		model.setName(soapModel.getName());
		model.setPriority(soapModel.getPriority());
		model.setKey(soapModel.getKey());

		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;
	}
383751
public static List<CommerceCurrency> toModels(
		CommerceCurrencySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
1133616
public static List<CPDefinitionInventory> toModels(
		CPDefinitionInventorySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
811509
public static CommerceTaxFixedRate toModel(
		CommerceTaxFixedRateSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceTaxFixedRate model = new CommerceTaxFixedRateImpl();

		model.setCommerceTaxFixedRateId(soapModel.getCommerceTaxFixedRateId());
		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.setCPTaxCategoryId(soapModel.getCPTaxCategoryId());
		model.setCommerceTaxMethodId(soapModel.getCommerceTaxMethodId());
		model.setRate(soapModel.getRate());

		return model;
	}
408672
public static List<CommerceUserSegmentEntry> toModels(
		CommerceUserSegmentEntrySoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
243117
public static List<CommerceWishListItem> toModels(
		CommerceWishListItemSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
513274
public GetRouteResult withRequestModels(java.util.Map<String, String> requestModels) {
        setRequestModels(requestModels);
        return this;
    }
255040
public GetRouteResponseResult withResponseModels(java.util.Map<String, String> responseModels) {
        setResponseModels(responseModels);
        return this;
    }
693875
@java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getModels() {
    return getModelsMap();
  }
1077084
public ApiListingBuilder models(Map<String, Model> models) {
    this.models.putAll(nullToEmptyMap(models));
    return this;
  }
1092261
private List<AdvancedModelWrapper> convertOpenEngSBModelList(List<OpenEngSBModel> models) {
        List<AdvancedModelWrapper> wrappers = new ArrayList<AdvancedModelWrapper>();
        for (OpenEngSBModel model : models) {
            wrappers.add(AdvancedModelWrapper.wrap(model));
        }
        return wrappers;
    }
579886
public CreateRouteResult withRequestModels(java.util.Map<String, String> requestModels) {
        setRequestModels(requestModels);
        return this;
    }
25497
public static ServiceInstance toServiceInstance(
            ModelServiceInstance modelInstance) {
        if (modelInstance==null) throw new NullPointerException();
        Map<String, String> meta = new HashMap<>();
        if (modelInstance.getMetadata() != null) {
            for (Entry<String, String> en : modelInstance.getMetadata()
                    .entrySet()) {
                meta.put(en.getKey(), en.getValue());
            }
        }
        return new ServiceInstance(modelInstance.getServiceName(),
                modelInstance.getUri(),
                modelInstance.isMonitorEnabled(), modelInstance.getStatus(),
                modelInstance.getAddress(),meta, modelInstance.getPort(), modelInstance.getTls_port(), modelInstance.getProtocol());
    }
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;
	}