arowsegment = getRowSegmentService().resurrect(arowsegment);
Matrix amatrix = arowsegment.getMatrixRow().getMatrix();
Long submissionId = getSubmissionHome().findByMatrix(amatrix).getId();
TBPermission perm2 = getSubmissionService().getPermission(username, submissionId);
if (perm2 == TBPermission.WRITE) {
getRowSegmentService().deleteRowSegment(
getRowSegmentService().findByID(arowsegment.getId()));
} else {