public static File getFileFromPathString(String urlString) throws MalformedURLException, URISyntaxException {

        //TODO: delete me. Only meanwhile developing the new file manager
        if (urlString != null) urlString = urlString.replaceAll("new:", "");
        //
        URL url = null;
        try {
            url = new URL(urlString);
        } catch (MalformedURLException e) {
            url = new URL("file://"+urlString);
        }
        URI uri = url.toURI();

        if (uri.getAuthority() != null && uri.getAuthority().length() > 0) {
            // Hack for UNC Path
            uri = (new URL("file://" + urlString.substring("file:".length()))).toURI();
        }

        File file = new File(uri);
        return file;
    }
Returns an instance of a File given the url string of the file path.
It gives compatibility with the windows, linux and mac URL Strings.

@param urlString
@return
@throws MalformedURLException
@throws URISyntaxException
src/main/java/org/replicadb/manager/LocalFileManager.java