HalRepresentation mergeWithEmbedding ( final Curies curies ) { this . curies = this . curies . mergeWith ( curies ) ; if ( this . links != null ) { removeDuplicateCuriesFromEmbedding ( curies ) ; this . links = this . links . using ( this . curies ) ; if ( embedded != null ) { embedded = embedded . using ( this . curies ) ; } } else { if ( embedded != null ) { embedded = embedded . using ( curies ) ; } } return this ; }
Merges the Curies of an embedded resource with the Curies of this resource and updates link - relation types in _links and _embedded items .