public HalResource setEmbedded ( String relation , HalResource resource ) { if ( resource == null ) { return this ; } return addResources ( HalResourceType . EMBEDDED , relation , false , new HalResource [ ] { resource } ) ; }
Embed resource for the given relation . Overwrites existing one .