CONN-1281:Updated X12 reference adapter code as per PR comments