1   package com.atlassian.maven.plugins.amps;
2   
3   import com.atlassian.maven.plugins.amps.product.ProductHandler;
4   import com.atlassian.maven.plugins.amps.product.ProductHandlerFactory;
5   import org.apache.maven.plugin.MojoExecutionException;
6   
7   public abstract class AbstractProductHandlerAwareMojo extends AbstractProductAwareMojo
8   {
9       protected ProductHandler createProductHandler(String productId) throws MojoExecutionException
10      {
11          return ProductHandlerFactory.create(productId, getMavenContext().getProject(), getMavenGoals(), getLog());
12      }
13  }