title: Converting a normal java program to map reduce
body: <p>I want to write a Java wrapper which will convert 'compatible programs' into map reduce form to be executed by the Hadoop framework.
  I am aware that my question is quite ambiguous.But this is what I intent to do.</p>
  
  <ul>
  <li>Take an input java program. user will specify which part of the
  program is to be executed by map reduce.   </li>
  <li>This java program will be
  inputed by my program and it will feed the equivalent map reduce
  program to hadoop.</li>
  </ul>
  
  <p>I am stuck on few points.</p>
  
  <ul>
  <li>Map reduce programs for each class will be different. How am I going
  to generalize it?</li>
  <li>From where I should start.</li>
  <li>What should be my approach for this problem?</li>
  </ul>
  
  <p>Any suggestions are welcome. It will help me to decide further direction.</p>