title: How to read folder path dynamically?
body: <p>Let's say I have path like </p>
  
  <blockquote>
    <p>"jboss/server/Default/deploy/Product_071016.ear/Product_071016.war/web-inf/classes/"</p>
  </blockquote>
  
  <p>I want to read this path using java and create a new file inside classes folder. Hard-Coding is not an option and it needs to be adaptable.</p>
  
  <p>In this path <code>Product_071016.ear</code> and <code>Product_071016.war</code> names changes(i.e. date,month,year is appended after "_").
  How can I do this?</p>