private void decodeAndIndex(byte[] bytes, Document document, LuceneOptions luceneOptions) {
//todo [anistor] the SerializationContext should somehow be injected here rather than getting it from a static holder
SerializationContext serCtx = SerializationContextHolder.getSerializationContext();
Descriptors.Descriptor wrapperDescriptor = serCtx.getMessageDescriptor(WrappedMessage.PROTOBUF_TYPE_NAME);
try {
new ProtobufParser().parse(new WrappedMessageTagHandler(document, luceneOptions, serCtx), wrapperDescriptor, bytes);
} catch (IOException e) {
throw new CacheException(e);
}
}