split "loading configuration from xml" code from configuration classes