[JBJCA-1056]  Inflow can't function because of invalid instanceof check