Added java configuration support