change getValueForPath to public method