better default for BatchArtifactFactory - trying to guess if we need cdi or not