What's the intention of "(What's So Funny 'Bout) Peace, Love And Understanding"?

Just reading the title, you might assume this, but pretty much all the rest of the lyrics besides the title line are pretty pessimistic and desperate.

I think it’s significant that the song is the album closer on Costello’s Armed Forces. It could be seen as a reaction to or reflection on the themes of the album. And if you’re going to be sincere, the last song on the album is the place to do it.