}
public static Object call(PageContext pc, String type, String lineColor1,String lineColor2) throws PageException {
type=type.toLowerCase().trim();
if("grayscale".equals(type)) return new GrayscaleColormap();
else if("spectrum".equals(type)) return new SpectrumColormap();
else if("linear".equals(type)) {
boolean isEmpty1=StringUtil.isEmpty(lineColor1);
boolean isEmpty2=StringUtil.isEmpty(lineColor2);