Moved config from xml to java.