Piyush,
My memory is getting fuzzy, but I'm pretty sure that if the browser goes to
http://localhost:5000/maqetta, then the Java server logic delivers a skeleton HTML page, and I think the logic is in maqetta.core.server/src/maqetta/core/server/DavinciPageServlet.java in function writeMainPage(), but I don't understand what's going on with constants EXTENSION_POINT_MAIN_PAGE and EP_TAG_MAIN_PAGE. But the server either delivers an empty HTML page or a very minimal HTML page, and the real content of the "home page" is built via client-side logic.
Most (all?) of the client-side page setup logic is in maqetta.core.client/WebContent/davinci/ve/Context.js. One particularly interesting function is _setSourcePostLoadRequires(), especially the line that looks like this:
window["loading" + this._id] = function(parser, htmlUtil) {
Within that block you'll see some logic that sets the 'id' and width/height properties on the BODY.
After _setSourcePostLoadRequires(), processing continues with function _continueLoading().
As I remember, there are 5 of 6 different functions that get invoked *ASYNCHRONOUSLY* to build up the initial page content. The logic is complex (and fully asynchronous) to deal with browser timing issues in loading various resources (e.g., loading Dojo JavaScript modules, loading styling sheets, loading Maqetta's various widget metadata files, etc). There were changes in the startup logic to fix some remaining bugs just before my team quit working on Maqetta, and I'm not sure I ever fully grasped the revised startup logic. If I were in your boots, I would get in the debugger, trace through things and take a bunch of notes to figure out how things work.
Best of luck.
Jon