Added methods for getting list of valid generators from a class depending on the passed config