Extended servlet with token functionality