Should be created class which implements Cookie (something like javax.servlet.http.Cookie) to make application more lightweight