[java] Best approach to converting Boolean object to string in java