@Override
public <T> Object serialize(FlowPropertyDefinition flowPropertyDefinition, T value) {
if ( value == null) {
return null;
} else {
IJsonWriter jsonWriter = this.serialize(flowPropertyDefinition, null, value);
String strV = jsonWriter.toString();
// TODO: trimming quotes is probably not needed anymore - CharSequenceFlowTranslator uses unquote...
if (strV != null && strV.startsWith("\"") && strV.endsWith("\"")) {
// trim off unneeded " that appear when handling simple objects.
strV = strV.substring(1, strV.length()-1);
}