Add java configuration and related unit tests
Remove cglib from pom.xml