StringBuilder buffer = new StringBuilder();
buffer.append('{');
if (primary != null && secondary != null)
{
buffer.append("primary: " + new LiteralOption(primary));
buffer.append(", secondary: " + new LiteralOption(secondary));
}
else if (primary != null)
{
buffer.append("primary: " + new LiteralOption(primary));
}
else if (secondary != null)
{
buffer.append("secondary: " + new LiteralOption(secondary));
}
buffer.append('}');
return buffer.toString();