Replaces getProperty and setProperty with generic get and set.