simplified configbuilder forClass