private Object getEntity(Object relationEntity)
    {
        return relationEntity != null && relationEntity.getClass().isAssignableFrom(EnhanceEntity.class) ? ((EnhanceEntity) relationEntity)
                .getEntity() : relationEntity;
    }
private Object getEntity ( Object relationEntity ) { return relationEntity != null && relationEntity . getClass ( ) . isAssignableFrom ( EnhanceEntity . class ) ? ( ( EnhanceEntity ) relationEntity ) . getEntity ( ) : relationEntity ; }
Returns wrapped entity.

@param relationEntity
@return