integrated Java classes and applicationContext