code: public static Authentication getAuthentication() {
          SecurityContext sc = getSecurityContext();
          return sc == null ? null : sc.getAuthentication();
      }
docs: Returns Spring security Authentication object via
  <code>SpringContextHolder.getContext().getAuthentication()</code>.
  
  @return Authentication or null if no authentication information is found