int (final ArrayList<Property> properties, final String name) { for(int i=properties.size()-1;i>=0;i--){ final Property property=properties.get(i); if(property.getName().equals(name)){ return i; } } return -1; }