For minor efficiency, maybe reuse your "subjectUri" variable at line 162.