code: public static ScannerFactory instance(Context context) {
          ScannerFactory instance = context.get(scannerFactoryKey);
          if (instance == null)
              instance = new ScannerFactory(context);
          return instance;
      }
docs: Get the Factory instance for this context.