public EntityBuilder addSubEntity ( Entity subEntity ) { if ( subEntity == null ) { throw new IllegalArgumentException ( "subEntity cannot be null." ) ; } addStep ( "_addEntity" , new Object [ ] { subEntity } , true ) ; return this ; }
Add a sub entity to the entity to be built . Sub entities are optional according to the Siren specification .