protected String toBaseURI ( String uri ) { LoaEnum loa = LoaEnum . parse ( uri ) ; if ( loa != null && loa . isSignatureMessageUri ( ) ) { return LoaEnum . minusSigMessage ( loa ) . getUri ( ) ; } return uri ; }
Given an URI its base form is returned . This means that the URI minus any potential sigmessage extension .