rewritten java config format