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;
	}
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 ; }
Converts the soap model instance into a normal model instance.

@param soapModel the soap model instance to convert
@return the normal model instance