// Path: src/main/java/com/github/webdriverextensions/internal/utils/PropertyUtils.java
// public class PropertyUtils {
// 
//     private PropertyUtils() {}
//     
//     public static boolean isTrue(String key) {
//         return BooleanUtils.toBoolean(System.getProperty(key));
//     }
// 
//     public static boolean propertyExists(String key) {
//         return System.getProperty(key) != null;
//     }
// 
//     public static void setPropertyIfNotExists(String key, String value) {
//         if (value == null || StringUtils.isBlank(value)) {
//             return;
//         }
//         if (!propertyExists(key)) {
//             System.setProperty(key, value);
//         }
//     }
// }
// 
// Path: src/main/java/com/github/webdriverextensions/internal/utils/WebDriverUtils.java
// public static final String SCREENSHOTSPATH_PROPERTY_NAME = "webdriverextensions.screenshotspath";


import com.github.webdriverextensions.internal.utils.PropertyUtils;
import static com.github.webdriverextensions.internal.utils.WebDriverUtils.SCREENSHOTSPATH_PROPERTY_NAME;
import com.github.webdriverextensions.junitrunner.annotations.ScreenshotsPath;
package com.github.webdriverextensions.internal.junitrunner;


public class ScreenshotsPathLoader {

    private ScreenshotsPathLoader() {}
    
    public static void loadScreenshotsPath(ScreenshotsPath screenshotsPathAnnotation) {
        String screenshotsPathAnnotationValue = screenshotsPathAnnotation != null ? screenshotsPathAnnotation.value() : null;
// Path: src/main/java/com/github/webdriverextensions/internal/utils/PropertyUtils.java
// public class PropertyUtils {
// 
//     private PropertyUtils() {}
//     
//     public static boolean isTrue(String key) {
//         return BooleanUtils.toBoolean(System.getProperty(key));
//     }
// 
//     public static boolean propertyExists(String key) {
//         return System.getProperty(key) != null;
//     }
// 
//     public static void setPropertyIfNotExists(String key, String value) {
//         if (value == null || StringUtils.isBlank(value)) {
//             return;
//         }
//         if (!propertyExists(key)) {
//             System.setProperty(key, value);
//         }
//     }
// }
// 
// Path: src/main/java/com/github/webdriverextensions/internal/utils/WebDriverUtils.java
// public static final String SCREENSHOTSPATH_PROPERTY_NAME = "webdriverextensions.screenshotspath";


// Path: src/main/java/com/github/webdriverextensions/internal/junitrunner/ScreenshotsPathLoader.java
import com.github.webdriverextensions.internal.utils.PropertyUtils;
import static com.github.webdriverextensions.internal.utils.WebDriverUtils.SCREENSHOTSPATH_PROPERTY_NAME;
import com.github.webdriverextensions.junitrunner.annotations.ScreenshotsPath;

package com.github.webdriverextensions.internal.junitrunner;


public class ScreenshotsPathLoader {

    private ScreenshotsPathLoader() {}
    
    public static void loadScreenshotsPath(ScreenshotsPath screenshotsPathAnnotation) {
        String screenshotsPathAnnotationValue = screenshotsPathAnnotation != null ? screenshotsPathAnnotation.value() : null;
        PropertyUtils.setPropertyIfNotExists(SCREENSHOTSPATH_PROPERTY_NAME, screenshotsPathAnnotationValue);