class BookmarkableUrlHelper {

    public static Set<String> getDockedScreensFromUrl(final String url) {
        int start;
        int end;
        String docks;

        if (!isNotBlank(url)) {
            return new HashSet<>();
        }
        start = url.indexOf(DOCK_BEGIN_SEP) + 1;
        end = url.indexOf(DOCK_CLOSE_SEP) - 1;

        if (start > 0) {
            docks = url.substring(start,
                                  end);
            String[] token = docks.split(SEPARATOR);
            return new HashSet<>(Arrays.asList(token));
        }
        return new HashSet<>();
    }

}