I have sorted this by replacing my type declaration from CommaSeparatedList to String ... Stack type accepts only String as parameters.