// olamy : read again the project to have values because store.updateProjectGroup( projectGroup );
// remove object data -> we don't display the project name in the build queue
AbstractContinuumAction.setProject( context, projectDao.getProject( project.getId() ) );
BuildDefinition defaultBuildDefinition = null;
BuildDefinitionTemplate template = null;
if ( projectBuilderId.equals( MavenTwoContinuumProjectBuilder.ID ) )
{
template = buildDefinitionService.getDefaultMavenTwoBuildDefinitionTemplate();
if ( template != null && template.getBuildDefinitions().size() > 0 )
{
defaultBuildDefinition = template.getBuildDefinitions().get( 0 );
}
}
else if ( projectBuilderId.equals( MavenOneContinuumProjectBuilder.ID ) )
{
template = buildDefinitionService.getDefaultMavenOneBuildDefinitionTemplate();
if ( template != null && template.getBuildDefinitions().size() > 0 )
{
defaultBuildDefinition = template.getBuildDefinitions().get( 0 );
}
}
if ( defaultBuildDefinition == null )
{