Use Guava splitter.. 

Splitter.on(",").split(headerParams); Yo may not need this method