if (moduleWatched == null) Logger.getLogger(BioHolder.class.toString()).error("Your module is null!");
    public GenericSensor getShelfSensorAttachedTo(List sensorList,            BioModule moduleWatched, int shelfIndex) {        for (Iterator iter = sensorList.iterator(); iter.hasNext();) {            ShelfSensor currentSensor = (ShelfSensor) (iter.next());            if (currentSensor.getInputModule()._is_equivalent(moduleWatched)) {                BiomassRS currentBiomassRS = BiomassRSHelper                        .narrow(currentSensor.getInputModule());                Shelf[] shelfArray = currentBiomassRS.getShelves();                if (currentSensor.getInput()._is_equivalent(                        shelfArray[shelfIndex]))                    return currentSensor;            }        }        return null;    }