code: private Object[] find(String source,
                            String target,
                            String variant) {
  
          Spec src = new Spec(source);
          Spec trg = new Spec(target);
          Object[] entry = null;
  
          if (variant.length() != 0) {
  
              // Seek exact match in hashtable
              entry = findInDynamicStore(src, trg, variant);
              if (entry != null) {
                  return entry;
              }
  
              // Seek exact match in locale resources
              entry = findInStaticStore(src, trg, variant);
              if (entry != null) {
                  return entry;
              }
          }
  
          for (;;) {
              src.reset();
              for (;;) {
                  // Seek match in hashtable
                  entry = findInDynamicStore(src, trg, NO_VARIANT);
                  if (entry != null) {
                      return entry;
                  }
  
                  // Seek match in locale resources
                  entry = findInStaticStore(src, trg, NO_VARIANT);
                  if (entry != null) {
                      return entry;
                  }
                  if (!src.hasFallback()) {
                      break;
                  }
                  src.next();
              }
              if (!trg.hasFallback()) {
                  break;
              }
              trg.next();
          }
  
          return null;
      }
docs: Top-level find method.  Attempt to find a source-target/variant in
  either the dynamic or the static (locale resource) store.  Perform
  fallback.
  
  Lookup sequence for ss_SS_SSS-tt_TT_TTT/v:
  
  ss_SS_SSS-tt_TT_TTT/v -- in hashtable
  ss_SS_SSS-tt_TT_TTT/v -- in ss_SS_SSS (no fallback)
  
  repeat with t = tt_TT_TTT, tt_TT, tt, and tscript
  
  ss_SS_SSS-t/*
  ss_SS-t/*
  ss-t/*
  sscript-t/*
  
  Here * matches the first variant listed.
  
  Caller does NOT own returned object.  Return 0 on failure.