Fixed compilation problems related to a intellij fix
Made schema registration fully automatic in cdi environments