public static CompostableWasteCollectionRequest xmlToModel(
      CompostableWasteCollectionRequestDocument compostableWasteCollectionRequestDoc) {
    CompostableWasteCollectionRequestDocument.CompostableWasteCollectionRequest
        compostableWasteCollectionRequestXml =
            compostableWasteCollectionRequestDoc.getCompostableWasteCollectionRequest();
    Calendar calendar = Calendar.getInstance();
    LocalTime localTime = new LocalTime();
    List list = new ArrayList();
    CompostableWasteCollectionRequest compostableWasteCollectionRequest =
        new CompostableWasteCollectionRequest();
    compostableWasteCollectionRequest.fillCommonModelInfo(
        compostableWasteCollectionRequest, compostableWasteCollectionRequestXml);

    if (compostableWasteCollectionRequestXml.getCollectionAddress() != null)
      compostableWasteCollectionRequest.setCollectionAddress(
          Address.xmlToModel(compostableWasteCollectionRequestXml.getCollectionAddress()));

    List<fr.cg95.cvq.business.request.LocalReferentialData> compostableWasteTypeList =
        new ArrayList<fr.cg95.cvq.business.request.LocalReferentialData>(
            compostableWasteCollectionRequestXml.sizeOfCompostableWasteTypeArray());
    for (LocalReferentialDataType object :
        compostableWasteCollectionRequestXml.getCompostableWasteTypeArray()) {
      compostableWasteTypeList.add(
          fr.cg95.cvq.business.request.LocalReferentialData.xmlToModel(object));
    }
    compostableWasteCollectionRequest.setCompostableWasteType(compostableWasteTypeList);

    compostableWasteCollectionRequest.setOtherWaste(
        compostableWasteCollectionRequestXml.getOtherWaste());

    return compostableWasteCollectionRequest;
  }
  public static TechnicalInterventionRequest xmlToModel(
      TechnicalInterventionRequestDocument technicalInterventionRequestDoc) {
    TechnicalInterventionRequestDocument.TechnicalInterventionRequest
        technicalInterventionRequestXml =
            technicalInterventionRequestDoc.getTechnicalInterventionRequest();
    Calendar calendar = Calendar.getInstance();
    LocalTime localTime = new LocalTime();
    List list = new ArrayList();
    TechnicalInterventionRequest technicalInterventionRequest = new TechnicalInterventionRequest();
    technicalInterventionRequest.fillCommonModelInfo(
        technicalInterventionRequest, technicalInterventionRequestXml);

    technicalInterventionRequest.setInterventionDescription(
        technicalInterventionRequestXml.getInterventionDescription());

    if (technicalInterventionRequestXml.getInterventionPlace() != null)
      technicalInterventionRequest.setInterventionPlace(
          Address.xmlToModel(technicalInterventionRequestXml.getInterventionPlace()));

    List<fr.cg95.cvq.business.request.LocalReferentialData> interventionTypeList =
        new ArrayList<fr.cg95.cvq.business.request.LocalReferentialData>(
            technicalInterventionRequestXml.sizeOfInterventionTypeArray());
    for (LocalReferentialDataType object :
        technicalInterventionRequestXml.getInterventionTypeArray()) {
      interventionTypeList.add(
          fr.cg95.cvq.business.request.LocalReferentialData.xmlToModel(object));
    }
    technicalInterventionRequest.setInterventionType(interventionTypeList);

    technicalInterventionRequest.setOtherInterventionLabel(
        technicalInterventionRequestXml.getOtherInterventionLabel());

    return technicalInterventionRequest;
  }
  public static AlignmentCertificateRequest xmlToModel(
      AlignmentCertificateRequestDocument alignmentCertificateRequestDoc) {
    AlignmentCertificateRequestDocument.AlignmentCertificateRequest alignmentCertificateRequestXml =
        alignmentCertificateRequestDoc.getAlignmentCertificateRequest();
    Calendar calendar = Calendar.getInstance();
    LocalTime localTime = new LocalTime();
    List list = new ArrayList();
    AlignmentCertificateRequest alignmentCertificateRequest = new AlignmentCertificateRequest();
    alignmentCertificateRequest.fillCommonModelInfo(
        alignmentCertificateRequest, alignmentCertificateRequestXml);

    if (alignmentCertificateRequestXml.getRequesterQuality() != null)
      alignmentCertificateRequest.setRequesterQuality(
          fr.cg95.cvq.business.request.urbanism.AcrRequesterQualityType.forString(
              alignmentCertificateRequestXml.getRequesterQuality().toString()));
    else
      alignmentCertificateRequest.setRequesterQuality(
          fr.cg95.cvq.business.request.urbanism.AcrRequesterQualityType
              .getDefaultAcrRequesterQualityType());

    alignmentCertificateRequest.setSection(alignmentCertificateRequestXml.getSection());

    alignmentCertificateRequest.setTransportationRoute(
        alignmentCertificateRequestXml.getTransportationRoute());

    alignmentCertificateRequest.setOwnerFirstNames(
        alignmentCertificateRequestXml.getOwnerFirstNames());

    alignmentCertificateRequest.setLocality(alignmentCertificateRequestXml.getLocality());

    alignmentCertificateRequest.setNumber(alignmentCertificateRequestXml.getNumber());

    alignmentCertificateRequest.setOwnerLastName(alignmentCertificateRequestXml.getOwnerLastName());

    if (alignmentCertificateRequestXml.getOwnerAddress() != null)
      alignmentCertificateRequest.setOwnerAddress(
          Address.xmlToModel(alignmentCertificateRequestXml.getOwnerAddress()));

    return alignmentCertificateRequest;
  }