title: Spring Data Rest Custom Method return String
body: <p>I need a custom Method on Spring Data Rest that has some kind of input and returns a String.</p>
  
  <pre><code>@BasePathAwareController
  @RequestMapping(value = "/businessActions")
  public class BusinessActionController implements ResourceProcessor&lt;RepositoryLinksResource&gt; {
  
  
      /**
       * This BusinessAction's purpose is: Generiert für ein Modell das entsprechende Barrakuda-File.
       * It returns one String.
       */
      @RequestMapping(value = "/modellGenerieren", method = RequestMethod.GET)
      public String modellGenerieren(@Param(value="project") String project) throws IOException {
          // Get project by id from repository and map to string.
          return "asdf\n";
      }
  }
  </code></pre>
  
  <p>By using <code>@BasePathAwareController</code> the endpoint will return <code>"asdf\n"</code>, my desired output would be: </p>
  
  <pre><code>asdf
  &lt;new line&gt;
  </code></pre>
  
  <p>Im able to produce this output by using only <code>@Controller</code>, but this breaks the awareness of the base path and i need the <code>PersistentEntityResourceAssembler</code> in other methods of this Controller - the assembler cannot be injected then.</p>