Added getBoolean

- moved repeat getString, getInteger and getBoolean code to XD.