class ConfigBuilder {

    static Path toPath(final String workDir, final String value) {
        if (workDir != null && value != null) {
            return Paths.get(workDir, value);
        } else if (value != null) {
            return Paths.get(value);
        }
        return null;
    }

    private  ConfigBuilder();

}