LPS-46756 Filter the results in java