protected IPortletEntity unwrapEntity ( IPortletEntity portletEntity ) { if ( portletEntity instanceof TransientPortletEntity ) { return ( ( TransientPortletEntity ) portletEntity ) . getDelegatePortletEntity ( ) ; } return portletEntity ; }
Returns the unwrapped entity if it is an instance of TransientPortletEntity . If not the original entity is returned .