I'd go easy on the grubs/maggots. Apparently they are super high in fat. A lot of insectivores (and Javas are not insectivores, they are granivores) actually eat mostly adult insects which are much lower in fat.
Instead, if she rejects actual mashed boiled eggs, try some dry egg food. My guys wont eat mashed eggs either, but they love the canary CeDe egg food. They will eat the "finch" version but they put rape seed and some other stuff in it (that isn't in the canary version) and my guys hate rape seed.
I would suggest getting the Canary CeDe dry egg food.
They also make an "insectfood" that is dried up bugs and molluscs, which you might offer as a treat. Javas are not actual insectivores but (as with many breeds of captive and wild granivorous birds) will eat insects when they can catch them.
My mother raised them years ago and we never fed them anything remotely insect-like. I've checked with people who have them in "modern times" and Javas seem to do fine without much or even any insect material in their diets. I don't think the Insectfood is necessary and should be fed, if at all, as an occasional treat, not a daily staple of their diet. They are known as the Rice Sparrow for a reason, and its not that they eat insect pests of rice crops.
http://glamgouldians.com/shop-cede.php
Just a note - Javas won't eat rice in captivity. That is because even in the wild they don't eat rice when it is "mature", but at the green "milk" stage when it is not yet "ripe" for human use. Harvested rice that is then further dried for long-term storage and human use is nothing like the green juicy immature seeds they eat in the wild.
CeDe tells you to moisten the egg food with "a few drops of water" but my guys won't eat it that way and you'll have to dispose of it by the end of the day (some people say to throw out mashed eggs or moistened eggfood after just 3 or 4 hours). So I just feed it dry in a treat cup the same as I would for seed and they do fine that way.
As for calcium sources - I lost a hen to egg binding awhile back. This happened when I was still letting them stuff themselves to their little green gills with all the fresh spinach any finch could ever want, but shouldn't have. They absolutely went nuts over the stuff.
However, it turns out spinach is very high in oxalic acid, which causes calcium depletion.
On top of the free-feeding of spinach, I had removed the cuttlebone from the cage because the holder it was in was just a giant poop-fest. I had to discard the cuttlebone as well as the holder because it was just filthy. Terrible holder! I had not gotten around to getting a new holder so there was no calcium in the cage.
No calcium in the cage + too much spinach + hen that lays even in the total absence of a male = perfect storm, my hen got egg-bound and died.
I learned my lessons the hard way.
Now I keep multiple sources of calcium in the cage at all times. There is a cuttlebone (in the new-improved-poop-free holder), a mineral block (which you have to rough up a bit or knock off the corners so finchly beaks can get a start on it), crushed egg shell, and ABBA Mineral Mix which has crushed oyster shell plus other trace minerals. They will go off one type and go to another on occasion so I just keep them all in there all the time to be sure there is ALWAYS some kind of calcium that they are currently eating in there. They use them all eventually. And I almost never give them spinach any more.
http://glamgouldians.com/product-mineralgrit.php
Note that it does not come in a jar as pictured, it comes in a super-duper-heavy-duty ziploc bag. And it lasts foooorever. My 2lb bag is still more than half full and I bought it over a year ago. I have 2 society finches and 2 parakeets.