I do this kind of thing too, but rather than embed all the data in a method, I structure the whole thing as build time static code. They "ought to" be the same thing, but you might try;
static Map<>mm = new MM(); static { mm.put(xx,new MM()); } -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/9d9d737e-4bcf-488d-a536-67ad0f0b66e0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.