private E getEntity ( Object entity ) { return ( E ) ( entity . getClass ( ) . isAssignableFrom ( EnhanceEntity . class ) ? ( ( EnhanceEntity ) entity ) . getEntity ( ) : entity ) ; }
Extract wrapped entity object from enhanced entity .