Added java 6 support for parseBoolean