Isn't customParams possibly very large? If so, use a StringBuilder or StringBuffer for performance.