Java based sequence index conversion to original sequence procedure.