{
// todo add error checking
// must be six parts
// each term must be -32768..32767
String[] parts = StringUtils.split(s, "([rgb]\\+?| )");
CXForm cxform = new CXForm();
cxform.redAddTerm = Integer.parseInt(parts[0]);
cxform.redMultTerm = Integer.parseInt(parts[1]);
cxform.greenAddTerm = Integer.parseInt(parts[2]);
cxform.greenMultTerm = Integer.parseInt(parts[3]);
cxform.blueAddTerm = Integer.parseInt(parts[4]);