added builder state check illegal state exceptions when invalid configuration set.