code: public static ContextObjectHolder getInstance() {
          if (singleton == null) {
              synchronized (ContextObjectHolder.class) {
                  if (singleton == null) { // double check
                      singleton = new ContextObjectHolder();
                  }
              }
          }
          return singleton;
      }
docs: 单例方法