from http://code.google.com/p/gdata-objectivec-client