@Nullable
    public static Folder fromConfig(final String config) {
        if (config == null) {
            return null;
        }

        final Folder result = fromConfigStrict(config);
        if (result != null) {
            return result;
        }

        //try parse as an Uri
        final Uri uri = UriUtils.parseUri(config);
        if (UriUtils.isFileUri(uri)) {
            return Folder.fromFile(UriUtils.toFile(uri));
        }
        if (UriUtils.isContentUri(uri)) {
            //we suspect that it is a documentUri in this case
            return Folder.fromDocumentUri(uri);
        }

        //we did our best, giving up now
        return null;

    }
Creates Folder instance from a previously deserialized representation using {@link Folder#toConfig()}.
main/src/main/java/cgeo/geocaching/storage/Folder.java