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