Yes. The NotifyContextRequest class works as a data container. On the one hand, Gson parses automatically the Json and fits it into the class. On the other hand, org.w3c.dom facilities are used in order to parse XML documents, but in this case, the fitting into the class is made by the code contained in the constructors.