title: Spring YAML how a property can refer another property of object type
body: <p>I have a YAML file where a property has reference of another property. </p>
  
  <p><strong>E.g.</strong>: </p>
  
  <pre><code>sidh:
      sftp:
          profile1:
              host: xxxx.com
              local:
                  directory:
                      download: localDownload
              user: abctest
              password: Team334
  
  
      sf:
        mf:
          clientId: 2324
          clientSecret: sd23
          refreshToken: 23sds
          url: test.salesforce.com
  
      feeds:
          mf_company:
            processor: com.xxxx.ABC
            pattern: ABC_*
            sf: mf   # How to reference sidh.sf.mf
            sft: profile1 # How to reference sidh.sftp.profile1 
  </code></pre>
  
  <p>I am using Spring and I couldn't find any out of the box library/examples about how a property (<code>sidh.feeds.mf_company.sf or sft</code>) can refer another object type property (<code>sidh.sf.mf, sidh.sftp.profile1</code>). I can write custom code to represent this YAML and create references. </p>
  
  <p>My question is: are there any out of the box library available to handle this scenario? </p>