private boolean getPresenceOfSulfat(IAtomContainer ac, IAtom atom) {
        List<IAtom> neighbours = ac.getConnectedAtomsList(atom);
        //org.openscience.cdk.interfaces.IAtom[] second = null;
        //IBond bond = null;
        //int counter = 0;
        for (IAtom neighbour : neighbours) {
            if (neighbour.getSymbol().equals("S") && getOxygenCount(ac, neighbour) >= 2
                    && ac.getConnectedBondsCount(neighbour) == 4) {
                return true;
            }
        }
        return false;
    }
private boolean getPresenceOfSulfat ( IAtomContainer ac , IAtom atom ) { List < IAtom > neighbours = ac . getConnectedAtomsList ( atom ) ; for ( IAtom neighbour : neighbours ) { if ( neighbour . getSymbol ( ) . equals ( "S" ) && getOxygenCount ( ac , neighbour ) >= 2 && ac . getConnectedBondsCount ( neighbour ) == 4 ) { return true ; } } return false ; }
Gets the presenceOfSulfat A-S(O2)-A attribute of the XLogPDescriptor object.

@param  ac    Description of the Parameter
@param  atom  Description of the Parameter
@return       The presenceOfSulfat [boolean]