Java based sequence conversion to index procedure.