* @return containing EdgeRing, if there is one
* @return null if no containing EdgeRing is found
*/
private EdgeRing findEdgeRingContaining(EdgeRing testEr, List shellList) {
Ring testRing = testEr.getRing();
org.geotools.geometry.iso.coordinate.EnvelopeImpl env = (EnvelopeImpl) testRing
.getEnvelope();
Envelope testEnv = new Envelope(env.getLowerCorner().getOrdinate(X), env
.getUpperCorner().getOrdinate(X), env.getLowerCorner().getOrdinate(Y), env
.getUpperCorner().getOrdinate(Y));
// Take a point on the ring to do the point in ring test
DirectPosition dp = testRing.getRepresentativePoint();
Coordinate testPt = new Coordinate(dp.getCoordinate());
EdgeRing minShell = null;
Envelope minEnv = null;
for (Iterator it = shellList.iterator(); it.hasNext();) {
EdgeRing tryShell = (EdgeRing) it.next();
Ring tryRing = tryShell.getRing();
env = (EnvelopeImpl) tryRing.getEnvelope();
Envelope tryEnv = new Envelope(env.getLowerCorner().getOrdinate(X), env
.getUpperCorner().getOrdinate(X), env.getLowerCorner().getOrdinate(Y), env
.getUpperCorner().getOrdinate(Y));
if (minShell != null) {