javax.jcr.nodetype.ConstraintViolationException in CQ5.4

set content-length header information on normal create operation to prevent javax.jcr.nodetype.ConstraintViolationException in cq54