* Set the {@link WriteConcern} for write operations on MongoDB, passing in the bean ref to a custom WriteConcern which exists in the Registry.
* You can also use standard WriteConcerns by passing in their key. See the {@link #setWriteConcern(String) setWriteConcern} method.
* @param writeConcernRef the name of the bean in the registry that represents the WriteConcern to use
*/
public void setWriteConcernRef(String writeConcernRef) {
WriteConcern wc = this.getCamelContext().getRegistry().lookupByNameAndType(writeConcernRef, WriteConcern.class);
if (wc == null) {
LOG.error("Camel MongoDB component could not find the WriteConcern in the Registry. Verify that the "
+ "provided bean name ({}) is correct. Aborting initialization.", writeConcernRef);
throw new IllegalArgumentException("Camel MongoDB component could not find the WriteConcern in the Registry");
}