transforming spring xml definitions into java equivalents