JAVA - trouble with getting value from EL expression

Hello,

My problem is I cant get value from session with EL expression
My code looks like this

exec(http(“Pobierz ID”)
.get("/")
.headers(headers_1)
.check(css(“meta[name=‘atlassian-token’]”, “content”).saveAs(“token”))
.check(status().saveAs(“status”))
)
.exec(session → {
System.out.println(session.get(“token”).toString());
System.out.println("#{token}");
System.out.println("${token}");
return session;
});

And the output is:
image

Please read the Gatling Expression Language documentation.

It’s not something that magically works everywhere.