protected Plugin findCurrentPlugin( Plugin plugin, MavenProject project )
{
Plugin found = null;
try
{
<BUG>Model model = project.getModel();
Map plugins = model.getBuild().getPluginsAsMap();

found = (Plugin) plugins.get( plugin.getKey() );
}</BUG>
catch ( NullPointerException e )

protected Plugin findCurrentPlugin( Plugin plugin, MavenProject project )
{
Plugin found = null;
try
{
Model model = project.getModel();
@SuppressWarnings( "unchecked" )
Map<String, Plugin> plugins = model.getBuild().getPluginsAsMap();
found = plugins.get( plugin.getKey() );
}
