code: public long getMetadataLastModified( String path )
          throws IOException, MetadataNotFoundException
      {
          File file = root;
          String[] parts = StringUtils.strip( path, "/" ).split( "/" );
          Stack<File> stack = new Stack<File>();
          for ( int i = 0; i < parts.length; i++ )
          {
              if ( "..".equals( parts[i] ) )
              {
                  if ( !stack.isEmpty() )
                  {
                      file = (File) stack.pop();
                  }
                  else
                  {
                      file = root;
                  }
              }
              else if ( !".".equals( parts[i] ) )
              {
                  file = new File( file, parts[i] );
                  stack.push( file );
              }
          }
          file = new File( file, "maven-metadata.xml" );
          if ( !file.isFile() )
          {
              throw new MetadataNotFoundException( path );
          }
          return file.lastModified();
      }
docs: {@inheritDoc}