code: function registerTypeById(type) {
      if (registryLogger.isDebugEnabled()) {
          registryLogger.debug('Register Type \'%s\' by id [%s]', type.typeName, type.id);
      }
      if(type.id) {
          typeById[type.id] = type;
      }
      return type;
  }
docs: Register a Type constructor by id