In other words, the judgment is made on the type of {TAIL ~ the received document data} in {HEAD ~ this step} 
In other words , the judgment is made on the type of { TAIL ~ the received document data } in { HEAD ~ this step }
OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH TAIL TAIL TAIL TAIL TAIL TAIL TAIL TAIL OTH HEAD HEAD HEAD HEAD HEAD HEAD