class MphChlOp extends Operator {

    static Sensor getSensorFromBrrSourceProduct(String[] sourceBands) {
        Sensor[] sensors = {Sensor.OLCI, Sensor.MERIS_3RD, Sensor.MERIS_4TH};
        for (Sensor sensor : sensors) {
            boolean containsBand = false;
            for (String requiredBandName : sensor.getRequiredBrrBandNames()) {
                containsBand = false;
                for (String sourceBandName : sourceBands) {
                    if (sourceBandName.equals(requiredBandName)) {
                        containsBand = true;
                    }
                }
                if (!containsBand) {
                    break;
                }
            }
            if (containsBand) {
                return sensor;
            }
        }

        return null;
    }

}