code: @Override
      public DescriptorValue calculate(IAtom atom, IAtomContainer container) {
          try {
              matched = CDKAtomTypeMatcher.getInstance(atom.getBuilder()).findMatchingAtomType(container, atom);
          } catch (CDKException e) {
              return getDummyDescriptorValue(e);
          }
          if (matched == null) {
              int atnum = container.indexOf(atom);
              return getDummyDescriptorValue(new CDKException("The matched atom type was null (atom number " + atnum
                      + ") " + atom.getSymbol()));
          }
          Hybridization atomHybridization = matched.getHybridization();
          IntegerResult result = new IntegerResult(atomHybridization == null ? 0 : atomHybridization.ordinal());
          return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), result,
                  getDescriptorNames());
      }
docs: This method calculates the hybridization of an atom.
  
  @param  atom              The IAtom for which the DescriptorValue is requested
  @param  container         Parameter is the atom container.
  @return                   The hybridization