code: function getPipeDef(name, registry) {
      if (registry) {
          for (var i = 0; i < registry.length; i++) {
              var pipeDef = registry[i];
              if (name === pipeDef.name) {
                  return pipeDef;
              }
          }
      }
      throw new Error("Pipe with name '" + name + "' not found!");
  }
docs: Searches the pipe registry for a pipe with the given name. If one is found,
  returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved.
  
  @param name Name of pipe to resolve
  @param registry Full list of available pipes
  @returns Matching PipeDef