title: Return Type incompatible with Object.getClass()
body: <p>the code is generated upon importing a webservice file on eclipse. However, I saw this error upon compiling (return type incompatible with <code>Object.getClass()</code>).</p>
  
  <p>Any ideas to fix this?</p>
  
  <pre><code>public java.lang.String getClass(){
      return localClass;
  }
  </code></pre>
  
  <p>Add On:</p>
  
  <pre><code>   if (localClass != null){
                                              elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClass));
                                          } else {
                                             throw new org.apache.axis2.databinding.ADBException("Class cannot be null!!");
                                          }
  </code></pre>