code: public void importObject(final Object obj) {
          this.importedObjects.remove(obj);
          this.importedObjects.add(0, obj);
          this.nameSpaceChanged();
      }
docs: Import a compiled Java object's methods and variables into this
  namespace. When no scripted method / command or variable is found locally
  in this namespace method / fields of the object will be checked. Objects
  are checked in the order of import with later imports taking precedence.
  <p/>
  @param obj the obj Note: this impor pattern is becoming common... could
  factor it out into an importedObject List<String> class.