protected void writeParkingFiles(ParkingRequest parkingRequest, FilePath filePath) { if (getDriverLicenseInputStream() != null) { writeParkingFile(parkingRequest, filePath, getDriverLicenseFileName(), ParkingDocumentType.DRIVER_LICENSE, getDriverLicenseInputStream()); } if (getFirstCarOwnerIdInputStream() != null) { writeParkingFile(parkingRequest, filePath, getFirstCarOwnerIdFileName(), ParkingDocumentType.FIRST_CAR_OWNER_ID, getFirstCarOwnerIdInputStream()); } if (getFirstCarPropertyRegistryInputStream() != null) { writeParkingFile(parkingRequest, filePath, getFirstCarPropertyRegistryFileName(), ParkingDocumentType.FIRST_CAR_PROPERTY_REGISTER, getFirstCarPropertyRegistryInputStream()); } if (getFirstDeclarationAuthorizationInputStream() != null) { writeParkingFile(parkingRequest, filePath, getFirstDeclarationAuthorizationFileName(), ParkingDocumentType.FIRST_DECLARATION_OF_AUTHORIZATION, getFirstDeclarationAuthorizationInputStream()); } if (getFirstInsuranceInputStream() != null) { writeParkingFile(parkingRequest, filePath, getFirstInsuranceFileName(), ParkingDocumentType.FIRST_CAR_INSURANCE, getFirstInsuranceInputStream()); } if (getSecondCarOwnerIdInputStream() != null) { writeParkingFile(parkingRequest, filePath, getSecondCarOwnerIdFileName(), ParkingDocumentType.SECOND_CAR_OWNER_ID, getSecondCarOwnerIdInputStream()); } if (getSecondCarPropertyRegistryInputStream() != null) { writeParkingFile(parkingRequest, filePath, getSecondCarPropertyRegistryFileName(), ParkingDocumentType.SECOND_CAR_PROPERTY_REGISTER, getSecondCarPropertyRegistryInputStream()); } if (getSecondDeclarationAuthorizationInputStream() != null) { writeParkingFile(parkingRequest, filePath, getSecondDeclarationAuthorizationFileName(), ParkingDocumentType.SECOND_DECLARATION_OF_AUTHORIZATION, getSecondDeclarationAuthorizationInputStream()); } if (getSecondInsuranceInputStream() != null) { writeParkingFile(parkingRequest, filePath, getSecondInsuranceFileName(), ParkingDocumentType.SECOND_CAR_INSURANCE, getSecondInsuranceInputStream()); }
protected void writeParkingFiles(ParkingRequest parkingRequest, FilePath filePath) { writeParkingFile(parkingRequest, filePath, getDriverLicenseFileName(), ParkingDocumentType.DRIVER_LICENSE, getDriverLicenseInputStream()); writeParkingFile(parkingRequest, filePath, getFirstCarOwnerIdFileName(), ParkingDocumentType.FIRST_CAR_OWNER_ID, getFirstCarOwnerIdInputStream()); writeParkingFile(parkingRequest, filePath, getFirstCarPropertyRegistryFileName(), ParkingDocumentType.FIRST_CAR_PROPERTY_REGISTER, getFirstCarPropertyRegistryInputStream()); writeParkingFile(parkingRequest, filePath, getFirstDeclarationAuthorizationFileName(), ParkingDocumentType.FIRST_DECLARATION_OF_AUTHORIZATION, getFirstDeclarationAuthorizationInputStream()); writeParkingFile(parkingRequest, filePath, getFirstInsuranceFileName(), ParkingDocumentType.FIRST_CAR_INSURANCE, getFirstInsuranceInputStream()); writeParkingFile(parkingRequest, filePath, getSecondCarOwnerIdFileName(), ParkingDocumentType.SECOND_CAR_OWNER_ID, getSecondCarOwnerIdInputStream()); writeParkingFile(parkingRequest, filePath, getSecondCarPropertyRegistryFileName(), ParkingDocumentType.SECOND_CAR_PROPERTY_REGISTER, getSecondCarPropertyRegistryInputStream()); writeParkingFile(parkingRequest, filePath, getSecondDeclarationAuthorizationFileName(), ParkingDocumentType.SECOND_DECLARATION_OF_AUTHORIZATION, getSecondDeclarationAuthorizationInputStream()); writeParkingFile(parkingRequest, filePath, getSecondInsuranceFileName(), ParkingDocumentType.SECOND_CAR_INSURANCE, getSecondInsuranceInputStream());
        protected void writeParkingFiles(ParkingRequest parkingRequest, FilePath filePath) {            if (getDriverLicenseInputStream() != null) {                                writeParkingFile(parkingRequest, filePath, getDriverLicenseFileName(), ParkingDocumentType.DRIVER_LICENSE,                        getDriverLicenseInputStream());            }            if (getFirstCarOwnerIdInputStream() != null) {                writeParkingFile(parkingRequest, filePath, getFirstCarOwnerIdFileName(),                        ParkingDocumentType.FIRST_CAR_OWNER_ID, getFirstCarOwnerIdInputStream());            }            if (getFirstCarPropertyRegistryInputStream() != null) {                          writeParkingFile(parkingRequest, filePath, getFirstCarPropertyRegistryFileName(),                        ParkingDocumentType.FIRST_CAR_PROPERTY_REGISTER,                        getFirstCarPropertyRegistryInputStream());            }            if (getFirstDeclarationAuthorizationInputStream() != null) {                                             writeParkingFile(parkingRequest, filePath, getFirstDeclarationAuthorizationFileName(),                        ParkingDocumentType.FIRST_DECLARATION_OF_AUTHORIZATION,                        getFirstDeclarationAuthorizationInputStream());            }            if (getFirstInsuranceInputStream() != null) {                                              writeParkingFile(parkingRequest, filePath, getFirstInsuranceFileName(),                        ParkingDocumentType.FIRST_CAR_INSURANCE, getFirstInsuranceInputStream());            }            if (getSecondCarOwnerIdInputStream() != null) {                                writeParkingFile(parkingRequest, filePath, getSecondCarOwnerIdFileName(),                        ParkingDocumentType.SECOND_CAR_OWNER_ID, getSecondCarOwnerIdInputStream());            }            if (getSecondCarPropertyRegistryInputStream() != null) {                          writeParkingFile(parkingRequest, filePath, getSecondCarPropertyRegistryFileName(),                        ParkingDocumentType.SECOND_CAR_PROPERTY_REGISTER,                        getSecondCarPropertyRegistryInputStream());            }            if (getSecondDeclarationAuthorizationInputStream() != null) {                            writeParkingFile(parkingRequest, filePath, getSecondDeclarationAuthorizationFileName(),                        ParkingDocumentType.SECOND_DECLARATION_OF_AUTHORIZATION,                        getSecondDeclarationAuthorizationInputStream());            }            if (getSecondInsuranceInputStream() != null) {                              writeParkingFile(parkingRequest, filePath, getSecondInsuranceFileName(),                        ParkingDocumentType.SECOND_CAR_INSURANCE, getSecondInsuranceInputStream());            }        }