code: public static Unit getUnitByUnitClass(Class<? extends Unit> unitClass) {
          readWriteLock.readLock().lock();
          try {
              return searchUnitByClass.get(unitClass);
          } finally {
              readWriteLock.readLock().unlock();
          }
      }
docs: return the cached unit singleton of the given unit class.