title: OSGi Component's default configuration value contains escaped backslash
body: <p>Below is a code of my simple OSGi component</p>
  
  <pre><code>@Component(metatype = true, label = "My Component", policy = ConfigurationPolicy.REQUIRE)
  @Property(label = "My Component's expression", name = "my.expression", value = "/5 * * * * ? *")
  public class MyComponent {
  
      private static final Logger log = LoggerFactory.getLogger(MyComponent.class);
  
      @Reference
      private Scheduler scheduler;
  
      @Activate
      public void activate(final ComponentContext context) {
          final String quartzExpression = PropertiesUtil.toString(
                  context.getProperties().get("my.expression"), "");
          ScheduleOptions options = scheduler.EXPR(quartzExpression).name("MyJob");
          scheduler.schedule(new Runnable() {
  
              @Override
              public void run() {
                  log.info("Hello World!");
  
              }
          }, options);
      }
  }
  </code></pre>
  
  <p>What it is supposed to do: it takes a configuration value that is a Quartz expression and uses it to schedule a job that logs a simple greeting.</p>
  
  <p>By default, I want the job to be executed every 5 seconds, which the default value of the property states. Now, since I also specify the <code>ConfigurationPolicy.REQUIRE</code>, I actually need to create the config. To do that, I go to the OSGi console's config manager, find <code>My Component</code> on the list and click it. At this moment, a request is sent to fetch the config dialog data. The response contains stuff like labels, names and, also, default value. In my case, the default value is returned as <code>/5\\ *\\ *\\ *\\ *\\ ?\\ *</code>, and is displayed on the dialog as <code>/5\ *\ *\ *\ *\ ?\ *</code>.</p>
  
  <p>Now, if I manually remove all the backslashes, the configuration is saved, is later extracted properly and makes the component work as expected. My question is, why is the default value specified in the code not the same as what I receive from OSGi in the config manager?</p>
  
  <p>Edit: after further investigation, I think it might be caused by Maven SCR Plugin that I use to generate component descriptors. It generates those two files: <code>.\target\classes\OSGI-INF\MyComponent.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"&gt;
      &lt;scr:component name="MyComponent" configuration-policy="require" activate="activate"&gt;
          &lt;implementation class="MyComponent"/&gt;
          &lt;property name="my.expression" value="/5 * * * * ? *"/&gt;
          &lt;property name="service.pid" value="MyComponent"/&gt;
          &lt;reference name="scheduler" interface="org.apache.sling.commons.scheduler.Scheduler" cardinality="1..1" policy="static" bind="bindScheduler" unbind="unbindScheduler"/&gt;
      &lt;/scr:component&gt;
  &lt;/components&gt;
  </code></pre>
  
  <p>And this one: <code>.\target\classes\OSGI-INF\metatype\MyComponent.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;metatype:MetaData xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.0.0" localization="OSGI-INF/metatype/MyComponent"&gt;
      &lt;OCD id="MyComponent" name="%MyComponent.name" description="%MyComponent"&gt;
          &lt;AD id="my.expression" type="String" name="%MyComponent.my.expression" /&gt;
      &lt;/OCD&gt;
      &lt;Designate pid="MyComponent"&gt;
          &lt;Object ocdref="MyComponent"/&gt;
      &lt;/Designate&gt;
  &lt;/metatype:MetaData&gt;
  </code></pre>
  
  <p>It looks like the <code>metatype</code> metadata is not generated properly.</p>