I have removed this function entirely. Smarter use of getPropertyValues makes this code rather trivial.