Atom b = residue.getAtoms().get(OffsettedIndexOfAtomB);
a.setIndexWithinCurrentResidue(OffsettedIndexOfAtomA);
b.setIndexWithinCurrentResidue(OffsettedIndexOfAtomB);
Connection connection = new Connection(a, b);
residue.addConnection(connection);
}
}