@ SuppressWarnings ( "unchecked" ) public T embed ( HalRelation relation , ProcessEngine processEngine ) { List < HalResource < ? > > resolvedLinks = linker . resolve ( relation , processEngine ) ; if ( resolvedLinks != null && resolvedLinks . size ( ) > 0 ) { addEmbedded ( relation . relName , resolvedLinks ) ; } return ( T ) this ; }
Can be used to embed a relation . Embedded all linked resources in the given relation .