private Subject getSubject(ResourceOperationHistory resourceOperationHistory) {
try {
return subjectManager.loginUnauthenticated(resourceOperationHistory.getSubjectName());
} catch (Exception e) {
throw new SubjectException("Not able to authenticate subject " + resourceOperationHistory.getSubjectName(),
e);
}
}