} else if (value.toString().equalsIgnoreCase("null")) {
return "null";
}
String returnValue;
TypeConverter converter = TypeConverterFactory.getInstance().findTypeConverter(database);
BooleanType booleanType = converter.getBooleanType();
if (value instanceof String) {
String trim = StringUtils.trim((String) value);
if ("T".equals(trim)) {
return booleanType.getTrueBooleanValue();
} else if ("F".equals(trim) || StringUtils.isEmpty((String) value) || "0".equals(trim)) {