IdentifierConsumerDocumentProducer:
if ( entities == null && entities.isEmpty() ) {
was obviously intended as an or operator.