docs: function (def) {
                  var bp = def.$package; // beans package
                  Aria.$classes.push({
                      $classpath : bp
                  });
                  this.__waitingBeans[bp] = def;
                  var dep = [];
  
                  // load missing dependencies
  
                  // add $dependencies
                  var dependencies = def.$dependencies || [];
                  if (dependencies.length) {
                      dep = dep.concat(dependencies);
                  }
  
                  // add bean definition from namespaces
                  for (var key in def.$namespaces) {
                      if (def.$namespaces.hasOwnProperty(key)) {
                          dep.push(def.$namespaces[key]);
                      }
                  }
  
                  return Aria.loadOldDependencies({
                      classpaths : {
                          "JS" : dep
                      },
                      classDefinition : def,
                      complete : {
                          scope : this,
                          fn : this.__loadBeans,
                          args : [bp]
                      }
                  });
              }