{
public V1NamedString apply(NamedString namedString)
{
if (namedString != null)
{
V1NamedString result = new V1NamedString();
result.setName(namedString.getName());
//GetValue is required for V1, but optional for V2. If we receive a null
//value from V2, then just set the value to be equal to the name.
if (namedString.getValue() == null)
{
result.setValue(namedString.getName());
}
else
{
result.setValue(namedString.getValue());
}
return result;
}
else
{