Add method generateValidConfig to interface problem.