* the error code.
* @throws ContentStreamException
*/
protected void throwContentStreamException(String msg, String errorCode)
throws ContentStreamException {
ContentStreamException cex = new ContentStreamException(msg);
cex.setValidationError(errorCode);
throw cex;
}