class XSUserInfoAdapter implements XSUserInfo {

	@Override
	public boolean hasAttributes() {
		checkNotGrantTypeClientCredentials("hasAttributes");
		if (accessToken.hasClaim(EXTERNAL_CONTEXT)) {
			JsonObject extContext = getClaimAsJsonObject(EXTERNAL_CONTEXT);
			return extContext != null && extContext.contains(XS_USER_ATTRIBUTES) && !extContext
					.getJsonObject(EXTERNAL_CONTEXT).isEmpty();
		} else {
			JsonObject xsUserAttributes = getClaimAsJsonObject(XS_USER_ATTRIBUTES);
			return !(xsUserAttributes == null || xsUserAttributes.isEmpty());
		}
	}

	public  XSUserInfoAdapter(Object accessToken);
	public  XSUserInfoAdapter(AccessToken accessToken);
	  XSUserInfoAdapter(Object accessToken, OAuth2ServiceConfiguration configuration);

}