title: How to exclude field in Orika bean mapper?
body: <p>I want to exclude some fields during mapping from a bean to <code>HashMap</code>.</p>
  
  <p>Orika definition:</p>
  
  <pre><code>static {
          final MapperFactory mapperFactory = new DefaultMapperFactory.Builder().build();
          mapperFactory.classMap(MyReq.class, Map.class)
                  .exclude("myproperty")
                  .byDefault()
                  .register();
          MAPPER = mapperFactory.getMapperFacade();
      }
  </code></pre>
  
  <p>Bean definitions:</p>
  
  <pre><code>public class MyReq {
      private String myproperty;
  }
  </code></pre>
  
  <p>Usage:</p>
  
  <pre><code>MyReq req = new MyReq;
  Map map = MAPPER.map(req, Map.class);
  </code></pre>
  
  <p>Result: the <code>Map</code> <strong>contains</strong> the excluded <code>myproperty</code> field! Why?</p>