/**
  * Enter description here...
  * @throws SerializationException
  * 
  * @return void
  */
 public static function serialize(SerializationStreamWriter $streamWriter, $instance, MappedClass $instanceClass)
 {
     if ($instance instanceof String) {
         $streamWriter->writeString($instance->stringValue());
     } else {
         $streamWriter->writeString($instance);
     }
     //$streamWriter->writeString($instance);
 }