Java version of github.com/jesand/ideologic