docs: function(options) {
  
          //Starting app.
          self.appName        = options.bundle;
  
          self.env            = options.env;
          self.version        = options.version;
          local.router        = new Router(self.env);
  
          //True => multiple bundles sharing the same server (port).
          self.isStandalone   = options.isStandalone;
          self.executionPath  = options.executionPath;
          self.bundles        = options.bundles;
  
          if (!self.isStandalone) {
              //Only load the related conf / env.
              self.conf[self.appName] = {};
              self.conf[self.appName][self.env] = options.conf[self.appName][self.env];
              self.conf[self.appName][self.env].bundlesPath = options.conf[self.appName][self.env].bundlesPath;
              self.conf[self.appName][self.env].modelsPath =  options.conf[self.appName][self.env].modelsPath;
              if (!self.conf[self.appName][self.env].server.request) {
                  self.conf[self.appName][self.env].server.request = {
                      isXMLRequest: false
                  }
              }
          } else {
  
              //console.log("Running mode not handled yet..", self.appName, " VS ", self.bundles);
              //Load all conf for the related apps & env.
              var apps = self.bundles;
              for (var i=0; i<apps.length; ++i) {
                  self.conf[apps[i]] = {};
                  self.conf[apps[i]][self.env] = options.conf[apps[i]][self.env];
                  self.conf[apps[i]][self.env].bundlesPath = options.conf[apps[i]][self.env].bundlesPath;
                  self.conf[apps[i]][self.env].modelsPath = options.conf[apps[i]][self.env].modelsPath;
                  if (!self.conf[apps[i]][self.env].server.request) {
                      self.conf[apps[i]][self.env].server.request = {
                          isXMLRequest: false
                      }
                  }
              }
          }
  
          // getting server core config
          var statusCodes = null
              , mime      = null;
  
          try {
              //var corePath = getPath('gina.core');
              var corePath = getPath('gina').core;
              statusCodes = fs.readFileSync( _( corePath + '/status.codes') ).toString();
              statusCodes = JSON.parse(statusCodes);
              if ( typeof(statusCodes['_comment']) != 'undefined' )
                  delete statusCodes['_comment'];
  
              mime  = fs.readFileSync(corePath + '/mime.types').toString();
              mime  = JSON.parse(mime);
              if ( typeof(mime['_comment']) != 'undefined' )
                  delete mime['_comment'];
  
              self.conf.core.statusCodes  = statusCodes;
              self.conf.core.mime         = mime
  
          } catch(err) {
              console.error(err.stack||err.message);
              process.exit(1)
          }
  
          self.emit('configured', false, express(), express, self.conf[self.appName][self.env]);
      }