try { String scheme = base.getScheme(); String spec = base.getSchemeSpecificPart(); return new URI( scheme, spec, fragment ); } catch( Throwable e ) { return base; }
String path = base.toString(); return "[" + path + "] (" + fragment + ")";
    private URI appendFragment( URI base, String fragment )    {        try        {            String scheme = base.getScheme();            String spec = base.getSchemeSpecificPart();            return new URI( scheme, spec, fragment );        }        catch( Throwable e )        {            return base;        }    }