private void handleBaseUriLink ( EntityBuilder builder , String baseUri ) { if ( StringUtils . isBlank ( baseUri ) ) { return ; } Link link = LinkBuilder . newInstance ( ) . setRelationship ( Link . RELATIONSHIP_BASEURI ) . setHref ( baseUri ) . build ( ) ; builder . addLink ( link ) ; }
Add the baseUri link to the entity if the baseUri is set on the entity .