code: function requireTypeByName(typeName) {
      var type = typeByName[typeName];
      if (!type) {
          var msg = 'Unable to retrieve a Type by Name [' + typeName + ']';
          registryLogger.error(msg);
          throw new Error(msg);
      }
      if (registryLogger.isDebugEnabled()) {
          registryLogger.debug('Require Type \'%s\' by name [%s]', type.id, typeName);
      }
      return type;
  }
docs: Retrieve a Type constructor by name