if (value != null)
{
final boolean tagValue;
if(value instanceof String) // probably was formatted or straight from request
{
<BUG>tagValue = Boolean.parseBoolean((String)value);
}</BUG>
else if(value instanceof Boolean)
{
tagValue = ((Boolean)value).booleanValue();

if (value != null)
{
final boolean tagValue;
if(value instanceof String) // probably was formatted or straight from request
{
tagValue = Boolean.valueOf((String)value).booleanValue();
}
else if(value instanceof Boolean)
{
tagValue = ((Boolean)value).booleanValue();
