ListFeatureCollection fcRLine = new ListFeatureCollection( fsRLine.getFeatures() );
while(fLine.hasNext()){
SimpleFeature line = fLine.next();
SimpleFeatureIterator fRLine = fcRLine.features();
Geometry lineGeom = (Geometry) line.getDefaultGeometry();
if(envelope.contains(lineGeom.getEnvelopeInternal())){
// check for valid comparison
if(LineString.class.isAssignableFrom(lineGeom.getClass())){
while(fRLine.hasNext()){