private Credentials getCurrentUser() {
    com.tasktop.c2c.server.profile.domain.project.Profile profile =
        profileWebService.getCurrentProfile();
    if (profile == null) {
      return null;
    }
    List<String> roles = new ArrayList<String>();

    if (SecurityContextHolder.getContext().getAuthentication() != null) {
      for (GrantedAuthority authority :
          SecurityContextHolder.getContext().getAuthentication().getAuthorities()) {
        roles.add(authority.getAuthority());
      }
    }

    return new Credentials(profile, roles);
  }