@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String expression = request.getParameter("expression");
TopList starredExpressions = ((TopList) ProjectManager.singleton.getPreferenceStore().get(
"scripting.starred-expressions"));
if (starredExpressions.getList().contains(expression)) {
starredExpressions.remove(expression);
} else {
starredExpressions.add(expression);
}
if(request.getParameter("returnList") != null) {
try {
response.setCharacterEncoding("UTF-8");