// Path: ceidg-captcha-common/src/main/java/net/scaliby/ceidgcaptcha/common/exception/ImageStoreException.java
// public class ImageStoreException extends RuntimeException {
// 
//     public ImageStoreException() {
//     }
// 
//     public ImageStoreException(String message) {
//         super(message);
//     }
// 
//     public ImageStoreException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ImageStoreException(Throwable cause) {
//         super(cause);
//     }
// 
//     public ImageStoreException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
//         super(message, cause, enableSuppression, writableStackTrace);
//     }
// }
// 
// Path: ceidg-captcha-downloader/src/main/java/net/scaliby/ceidgcaptcha/downloader/factory/ImageStoreFactory.java
// public interface ImageStoreFactory {
// 
//     File createImageStore(File basePath, String label);
// 
// }


import net.scaliby.ceidgcaptcha.common.exception.ImageStoreException;
import net.scaliby.ceidgcaptcha.downloader.factory.ImageStoreFactory;
import java.io.File;
package net.scaliby.ceidgcaptcha.downloader.factory.impl;



public class ImageStoreFactoryImpl implements ImageStoreFactory {
    @Override
    public File createImageStore(File basePath, String label) {
        File imageStore = new File(basePath, label);
// Path: ceidg-captcha-common/src/main/java/net/scaliby/ceidgcaptcha/common/exception/ImageStoreException.java
// public class ImageStoreException extends RuntimeException {
// 
//     public ImageStoreException() {
//     }
// 
//     public ImageStoreException(String message) {
//         super(message);
//     }
// 
//     public ImageStoreException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ImageStoreException(Throwable cause) {
//         super(cause);
//     }
// 
//     public ImageStoreException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
//         super(message, cause, enableSuppression, writableStackTrace);
//     }
// }
// 
// Path: ceidg-captcha-downloader/src/main/java/net/scaliby/ceidgcaptcha/downloader/factory/ImageStoreFactory.java
// public interface ImageStoreFactory {
// 
//     File createImageStore(File basePath, String label);
// 
// }


// Path: ceidg-captcha-downloader/src/main/java/net/scaliby/ceidgcaptcha/downloader/factory/impl/ImageStoreFactoryImpl.java
import net.scaliby.ceidgcaptcha.common.exception.ImageStoreException;
import net.scaliby.ceidgcaptcha.downloader.factory.ImageStoreFactory;
import java.io.File;

package net.scaliby.ceidgcaptcha.downloader.factory.impl;



public class ImageStoreFactoryImpl implements ImageStoreFactory {
    @Override
    public File createImageStore(File basePath, String label) {
        File imageStore = new File(basePath, label);
        if (!imageStore.mkdir()) {