List<Project> projects = AbstractContinuumAction.getListOfProjects( context );
Map<Integer, BuildDefinition> projectsBuildDefinitionsMap =
AbstractContinuumAction.getProjectsBuildDefinitionsMap( context );
Map<Integer, ScmResult> scmResultMap = AbstractContinuumAction.getScmResultMap( context );
List<Project> projectsToBeBuilt = new ArrayList<Project>();
BuildTrigger buildTrigger = AbstractContinuumAction.getBuildTrigger( context );
int projectGroupId = AbstractContinuumAction.getProjectGroupId( context );
// update state of each project first
for ( Project project : projects )
{