if (isEnabled()) {
SecurityContext secCtx = context.getSecurityContext();
if (secCtx == null) {
ConnectionReference conn = new ConnectionReference(context, info, getEnvironment());
Subject subject = createSubject(conn);
SubjectConnectionReference subjectConn = new SubjectConnectionReference(context, info, getEnvironment(), subject);
secCtx = createSecurityContext(subjectConn);
context.setSecurityContext(secCtx);
}