Use Boolean.parseBoolean(x) instead of Boolean.valueOf(x).booleanValue() to avoid unnecessary temporary object creation