docs: public Metadata getMetadata( String path )
          throws IOException, MetadataNotFoundException
      {
          File file = root;
          String[] parts = StringUtils.strip( path, "/" ).split( "/" );
          for ( int i = 0; i < parts.length; i++ )
          {
              file = new File( file, parts[i] );
          }
          file = new File( file, "maven-metadata.xml" );
          if ( !file.isFile() )
          {
              throw new MetadataNotFoundException( path );
          }
          MetadataXpp3Reader reader = new MetadataXpp3Reader();
          InputStream inputStream = null;
          try
          {
              inputStream = new FileInputStream( file );
              return reader.read( inputStream );
          }
          catch ( XmlPullParserException e )
          {
              IOException ioe = new IOException( e.getMessage() );
              ioe.initCause( e );
              throw ioe;
          }
          finally
          {
              IOUtils.closeQuietly( inputStream );
          }
      }