getPrivateValue now also retrieves the value if the field is declared in a parent class