Add getConfig method in task super class.