Remove depracated Session.getFlashes call
Fixing bug when getting resources via criterias and findBy