code: private boolean getRelationFromOracle(ISense source, ISense target, char rel) throws SenseMatcherException {
          final String sensePairKey = source.toString() + target.toString();
          Character cachedRelation = sensesCache.get(sensePairKey);
          // if we don't have cached relation check which one exist and put it to cash
          if (null == cachedRelation) {
              // check for synonymy
              if (isSourceSynonymTarget(source, target)) {
                  sensesCache.put(sensePairKey, IMappingElement.EQUIVALENCE);
                  return rel == IMappingElement.EQUIVALENCE;
              } else {
                  // check for opposite meaning
                  if (isSourceOppositeToTarget(source, target)) {
                      sensesCache.put(sensePairKey, IMappingElement.DISJOINT);
                      return rel == IMappingElement.DISJOINT;
                  } else {
                      // check for less general than
                      if (isSourceLessGeneralThanTarget(source, target)) {
                          sensesCache.put(sensePairKey, IMappingElement.LESS_GENERAL);
                          return rel == IMappingElement.LESS_GENERAL;
                      } else {
                          // check for more general than
                          if (isSourceMoreGeneralThanTarget(source, target)) {
                              sensesCache.put(sensePairKey, IMappingElement.MORE_GENERAL);
                              return rel == IMappingElement.MORE_GENERAL;
                          } else {
                              sensesCache.put(sensePairKey, IMappingElement.IDK);
                              return false;
                          }
                      }
                  }
              }
          } else {
              return rel == cachedRelation;
          }
      }
docs: Method which returns whether particular type of relation between
  two senses holds(according to oracle).
  It uses cache to store already obtained relations in order to improve performance.
  
  @param source the string of source
  @param target the string of target
  @param rel    the relation between source and target
  @return whether particular type of relation holds between two senses according to oracle
  @throws SenseMatcherException SenseMatcherException