class ReadOnlyIndexReference extends IndexReference {

    @Override
    public IndexWriter getWriter()
    {
        throw new UnsupportedOperationException( "Read only indexes do not have index writers." );
    }

      ReadOnlyIndexReference( IndexIdentifier identifier, IndexSearcher searcher );

}