public Entity newEntity ( Entity e ) { Entity res = newEntity ( e . getId ( ) ) ; res . getOther ( ) . addAll ( e . getOther ( ) ) ; res . getType ( ) . addAll ( e . getType ( ) ) ; res . getLabel ( ) . addAll ( e . getLabel ( ) ) ; res . getLocation ( ) . addAll ( e . getLocation ( ) ) ; return res ; }
Creates a copy of an entity . The copy is shallow in the sense that the new Entity shares the same attributes as the original Entity .