title: Retrieving a Spring bean programatically from a hybris hMC Action
body: <p>I've written a customized SaveAction for my hMC and I'd like to use some Services in this action, for instance the modelService. </p>
  
  <p>I'd like to do it programatically, and not by declaring it in my spring xml files, since my custom SaveAction is not a spring bean itself.</p>
  
  <p>Here's an example of what I want:</p>
  
  <pre><code>public class MySaveAction extends GenericItemSaveAction
  {
  
      @Override
      protected ActionResult afterSave(final Item item, final DisplayState displayState, final Map currentValues,
              final Map initialValues, final ActionResult actionResult)
      {
  
          ActionResult result = null;
  
          result = super.afterSave(item, displayState, currentValues, initialValues, actionResult);
  
          //how do I retrieve the modelService spring bean here?
          final ModelService modelService = null;
  
          final VariantProductModel variantProduct = modelService.get(item.getPK());
  
          return result;
  
  }
  </code></pre>