// it exists, otherwise, it's a bad error.
ColorConfigElement config =
(ColorConfigElement) currentParams.getElement(type);
if (config == null) {
LOGGER.info("Unable to find config element " + type);
config = new HairColorConfigElement();
config.setR(1.0f);
config.setG(1.0f);
config.setB(1.0f);
}