applying m.satyad's patch for https://code.google.com/p/linkedin-j/issues/detail?id=139