// ProjectValidation project = access.getProject();
      // if (project == null || !Objects.equal(projectId, project.getId())) {
      // return null;
      // }
      UserValidation userInfo = access.getUser();
      if (userInfo == null) {
        return null;
      }
      ProjectValidation projectInfo = access.getProject();
      if (projectInfo == null) {
        return null;
      }
      // List<String> roles = Lists.newArrayList();
      // UserValidation userInfo = access.getUser();
      // for (Role role : userInfo.getRoles()) {
      // if (!role.getTenantId().equals(projectId)) {
      // throw new IllegalStateException("Tenant mismatch: " + role.getTenantId() + " vs " + projectId);
      // }
      // roles.add(role.getName());
      // }
      // byte[] userSecret = userInfo.getSecret();
      String userKey = userInfo.getName();
      PlatformlayerUserAuthentication user = new PlatformlayerUserAuthentication(authToken, userKey);
      PlatformlayerProjectAuthorization project = buildPlatformlayerProjectAuthorization(user, projectInfo);
      return project;
    } catch (RestClientException e) {