code: private static XmlPullParser getXmlPullParser() {
          SoftReference<XmlPullParser> ref = XPP_PARSER.get();
          XmlPullParser result = ref.get();
          if (result == null) {
              Exception thrown;
              try {
                  XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
                  factory.setNamespaceAware(true);
                  factory.setValidating(false);
                  result = factory.newPullParser();
                  ref = new SoftReference<XmlPullParser>(result);
                  XPP_PARSER.set(ref);
                  return result;
              } catch (Exception ex) {
                  thrown = ex;
              }
              throw(new IllegalStateException(
                      "Could not create XmlPull parser", thrown));
          } else {
              return result;
          }
      }
docs: Gets a XmlPullParser for use in parsing incoming messages.
  
  @return parser instance