public static boolean isLocal(String url) {
        if (url != null && !url.startsWith("http://") && !url.startsWith("https://")) {
            return true;
        }
        return false;
    }
public static boolean isLocal ( String url ) { if ( url != null && ! url . startsWith ( "http://" ) && ! url . startsWith ( "https://" ) ) { return true ; } return false ; }
@return Whether the URI is a local one.