private List<Pset_Warranty> getPsetWarrantyPropertySets(IfcTypeObject type, TypeType newType) {
    List<Pset_Warranty> psetWarrantyOccurences = new ArrayList<Pset_Warranty>();
    for (IfcPropertySetDefinition propertySetDefinition : type.getHasPropertySets()) {
      if (propertySetDefinition instanceof IfcPropertySet) {
        IfcPropertySet propertySet = (IfcPropertySet) propertySetDefinition;
        try {
          Pset_Warranty psetWarranty = new Pset_Warranty(propertySet);
          psetWarrantyOccurences.add(psetWarranty);
        } catch (Exception ex) {

        }
      }
    }
    return psetWarrantyOccurences;
  }
  @Override
  protected List<TypeType> serializeModelObject(IfcTypeObject type) {
    List<TypeType> newTypes = new ArrayList<TypeType>();

    IfcOwnerHistory oh = type.getOwnerHistory();
    if (type != null && (!ignoreNonAssets || IfcToType.isAssetType(type))) {
      TypeType newType = cobieSection.addNewType();
      handleCommonFields(type, oh, newType);
      newType.setAssetType(IfcToType.assetTypeFromTypeObject(type));
      handleManufacturerInfo(type, newType);
      handleWarrantyFields(type, newType);
      handleServiceLife(type, newType);
      handleExtendedAttributes(type, newType);
      newTypes.add(newType);
    }
    return newTypes;
  }