code: public void setStartUpWeight(Integer weight) {
          //save previous weight to see if we need to try to remove and add it again to the list
          this.previousWeight = this.startUpWeight;
          
          if (weight != null) {
              if (weight.intValue() >= 0)
                  this.startUpWeight = weight;
              else
                  this.startUpWeight = DEFAULT_STARTUP;
          } else {
              this.startUpWeight = DEFAULT_STARTUP;
          }
          if (this.context != null)
              this.context.addToStartWeightList(this);
      }
docs: Sets the startUpWeight. A null value is translated to the default weight.
  
  @param weight