• There are two iterations of propertyValues in the code, combining the logic into one loop can reduce overhead.
  • propertyValue.getName() already cached but not used.

Comment From: bclozel

Thanks for your contribution @freesme !