OAK-3289 : buglet fix for previous commit here : in case of RDBMK we get a Long but in case of Mongo we still get an Integer - so just do an ugly instanceof to support both until OAK-3288 is fixed