From https://groups.google.com/forum/#!topic/swagger-swaggersocket/oLVt1xL3JB8 seems like the classes should be initialized as an empty set instead of null.