extract getting properties to utility class