Here\'s the model I implemented:
public class LoginSession { private static final Gson gson = new Gson(); private String id; private String name
It seems just fine to me. There is nothing in the GSON instance that makes it related to a specific instance of LoginSession, so it should be static.
LoginSession
GSON instances should be thread-safe, and there was a bug regarding that which was fixed.