code: function(bundle, env) {
  
              if ( !self.isStandalone ) {
                  if ( !bundle && typeof(self.bundle) != 'undefined' ) {
                      var bundle = self.bundle
                  }
                  return ( typeof(self.envConf) != "undefined" ) ? self.envConf[bundle][env] : null;
              } else {
  
                  if (!bundle) { // if getContext().bundle is lost .. eg.: worker context
                      var model       = (arguments.length == 1) ? bundle : model
                          , file      = ( !/node_modules/.test(__stack[1].getFileName()) ) ?  __stack[1].getFileName() : __stack[2].getFileName()
                          , a         = file.replace('.js', '').split('/')
                          , i         = a.length-1
                          , bundles   = getContext('gina').config.bundles
                          , index     = 0;
  
                      for (; i >= 0; --i) {
                          index = bundles.indexOf(a[i]);
                          if ( index > -1 ) {
                              bundle = bundles[index];
                              break
                          }
                      }
                  }
  
                  if ( typeof(self.envConf) != "undefined" ) {
                      self.envConf[bundle][env].hostname = self.envConf[self.startingApp][env].hostname;
                      self.envConf[bundle][env].content.routing = self.envConf[self.startingApp][env].content.routing;
  
                      if ( bundle && env ) {
                          return self.envConf[bundle][env]
                      } else if ( bundle && !env ) {
                          return self.envConf[bundle]
                      } else {
                          return self.envConf
                      }
                  }
  
                  return null
              }
          }
docs: Get env config
  
  @param {string} bundle
  @param {string} env
  
  @return {Object} json conf