class CentralWavelengthProvider {

    public float[] getCentralWavelength(final String productType) {
        if (productType.startsWith("MER_RR")) {
            return centralWavelenthRr;
        } else if (productType.startsWith("MER_F")) {
            return generateCentralWavelengthFr();
        } else {
            throw new IllegalArgumentException("'The product has an unsupported product type: " + productType);
        }
    }

    public  CentralWavelengthProvider();

}