code: public static synchronized void registerStack(Stack stack) throws InternalException {
      if (!initialized) {
        initialize();
      }
      StackInfo stackInfo = new StackInfo();
      stackInfo.stack = stack;
      stackInfo.stackClass = stack.getClass();
      stackInfo.stackClassName = stackInfo.stackClass.getName();
      stacks.add(stackInfo);
      println(new StringBuilder().append("registerStack: ").append(stackInfo).toString());
    }
docs: Registers the given stack with the <code>ScoketManager</code>.
  A newly-loaded stack class should call
  the method <code>registerStack</code> to make itself
  known to the <code>StackManager</code>.
  
  @param stack the new Diameter Stack that is to be registered with the
  <code>StackManager</code>
  @exception InternalException if a manager has internal error