code: private static Field.Store getStoreParameter(int flags)
     {
        if ((flags & STORED_FLAG) > 0)
        {
           return Field.Store.YES;
        }
        else
        {
           return Field.Store.NO;
        }
     }
docs: Returns the store parameter extracted from the flags.
  
  @param flags the flags of the Lucene field.
  @return the store parameter corresponding to the given flags.