Color c = ColorsFactory.getColor(channel); if (c != null) return c; switch (index) { case  0: return BLUE_COLOR; case  1: return GREEN_COLOR; default: return RED_COLOR; }
Integer emWave = channel.getLogicalChannel().getEmissionWave(); if (emWave == null) return null; if (rangeBlue(emWave)) return BLUE_COLOR; if (rangeGreen(emWave)) return GREEN_COLOR; if (rangeRed(emWave)) return RED_COLOR; return null;
    public static Color getColor(int index, Channel channel)    {        Color c = ColorsFactory.getColor(channel);        if (c != null) return c;        switch (index) {        	case  0: return BLUE_COLOR;        	case  1: return GREEN_COLOR;        	default: return RED_COLOR;        }    }