Converts the soap model instances into normal model instances.

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

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

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

		return models;
	}
373108
public static List<CommerceWarehouseItem> toModels(
		CommerceWarehouseItemSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
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;
	}
1364322
public <T> List<T> convertEDBObjectsToModelObjects(Class<T> model, List<EDBObject> objects) {
        List<T> models = new ArrayList<>();
        for (EDBObject object : objects) {
            T instance = convertEDBObjectToModel(model, object);
            if (instance != null) {
                models.add(instance);
            }
        }
        return models;
    }
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;
	}
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;
	}
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;
	}
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;
	}
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;
    }
788971
public RouteResponse withResponseModels(java.util.Map<String, String> responseModels) {
        setResponseModels(responseModels);
        return this;
    }
611988
private List<OpenEngSBModel> convertSimpleModelWrapperList(List<AdvancedModelWrapper> wrappers) {
        List<OpenEngSBModel> models = new ArrayList<OpenEngSBModel>();
        for (AdvancedModelWrapper wrapper : wrappers) {
            models.add(wrapper.getUnderlyingModel());
        }
        return models;
    }
592336
public Route withRequestModels(java.util.Map<String, String> requestModels) {
        setRequestModels(requestModels);
        return this;
    }
693875
@java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getModels() {
    return getModelsMap();
  }
267075
public static List<CommerceAccount> toModels(
		CommerceAccountSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
558061
public static List<CommerceShippingFixedOptionRel> toModels(
		CommerceShippingFixedOptionRelSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
361678
public static List<CommerceAddress> toModels(
		CommerceAddressSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

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

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

		return models;
	}
368168
public static CommerceAccount toModel(CommerceAccountSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceAccount model = new CommerceAccountImpl();

		model.setExternalReferenceCode(soapModel.getExternalReferenceCode());
		model.setCommerceAccountId(soapModel.getCommerceAccountId());
		model.setCompanyId(soapModel.getCompanyId());
		model.setUserId(soapModel.getUserId());
		model.setUserName(soapModel.getUserName());
		model.setCreateDate(soapModel.getCreateDate());
		model.setModifiedDate(soapModel.getModifiedDate());
		model.setParentCommerceAccountId(soapModel.getParentCommerceAccountId());
		model.setName(soapModel.getName());
		model.setLogoId(soapModel.getLogoId());
		model.setEmail(soapModel.getEmail());
		model.setTaxId(soapModel.getTaxId());
		model.setType(soapModel.getType());
		model.setActive(soapModel.isActive());
		model.setDisplayDate(soapModel.getDisplayDate());
		model.setExpirationDate(soapModel.getExpirationDate());
		model.setLastPublishDate(soapModel.getLastPublishDate());
		model.setStatus(soapModel.getStatus());
		model.setStatusByUserId(soapModel.getStatusByUserId());
		model.setStatusByUserName(soapModel.getStatusByUserName());
		model.setStatusDate(soapModel.getStatusDate());

		return model;
	}