HH-38304 Use vars() for getting class attributes