private Object findExtension( MavenProject project, String role, String roleHint, Settings settings,
ArtifactRepository localRepository )
throws LifecycleExecutionException, PluginNotFoundException
{
Object pluginComponent = null;
<BUG>for ( Iterator i = project.getBuildPlugins().iterator(); i.hasNext() && pluginComponent == null; )
{
Plugin plugin = (Plugin) i.next();</BUG>
if ( plugin.isExtensions() )
{

private Object findExtension( MavenProject project, String role, String roleHint, Settings settings,
ArtifactRepository localRepository )
throws LifecycleExecutionException, PluginNotFoundException
{
Object pluginComponent = null;
@SuppressWarnings( "unchecked" )
List<Plugin> buildPlugins = project.getBuildPlugins();
for ( Plugin plugin : buildPlugins )
{
if ( plugin.isExtensions() )
{
