{
List<BuildContext> buildContext = new ArrayList<BuildContext>();
for ( Map<String, Object> map : projectsBuildContext )
{
BuildContext context = new BuildContext();
context.setProjectId( ContinuumBuildAgentUtil.getProjectId( map ) );
context.setProjectVersion( ContinuumBuildAgentUtil.getProjectVersion( map ) );
context.setBuildDefinitionId( ContinuumBuildAgentUtil.getBuildDefinitionId( map ) );
context.setBuildFile( ContinuumBuildAgentUtil.getBuildFile( map ) );
context.setExecutorId( ContinuumBuildAgentUtil.getExecutorId( map ) );
context.setGoals( ContinuumBuildAgentUtil.getGoals( map ) );
context.setArguments( ContinuumBuildAgentUtil.getArguments( map ) );
context.setScmUrl( ContinuumBuildAgentUtil.getScmUrl( map ) );
context.setScmUsername( ContinuumBuildAgentUtil.getScmUsername( map ) );
context.setScmPassword( ContinuumBuildAgentUtil.getScmPassword( map ) );
context.setBuildFresh( ContinuumBuildAgentUtil.isBuildFresh( map ) );
context.setProjectGroupId( ContinuumBuildAgentUtil.getProjectGroupId( map ) );
context.setProjectGroupName( ContinuumBuildAgentUtil.getProjectGroupName( map ) );
context.setScmRootAddress( ContinuumBuildAgentUtil.getScmRootAddress( map ) );
context.setScmRootId( ContinuumBuildAgentUtil.getScmRootId( map ) );
context.setProjectName( ContinuumBuildAgentUtil.getProjectName( map ) );
context.setProjectState( ContinuumBuildAgentUtil.getProjectState( map ) );
context.setTrigger( ContinuumBuildAgentUtil.getTrigger( map ) );
context.setUsername( ContinuumBuildAgentUtil.getUsername( map ) );
context.setLocalRepository( ContinuumBuildAgentUtil.getLocalRepository( map ) );
context.setBuildNumber( ContinuumBuildAgentUtil.getBuildNumber( map ) );
context.setOldScmResult( getScmResult( ContinuumBuildAgentUtil.getOldScmChanges( map ) ) );
context.setLatestUpdateDate( ContinuumBuildAgentUtil.getLatestUpdateDate( map ) );
context.setBuildAgentUrl( ContinuumBuildAgentUtil.getBuildAgentUrl( map ) );
context.setMaxExecutionTime( ContinuumBuildAgentUtil.getMaxExecutionTime( map ) );
context.setBuildDefinitionLabel( ContinuumBuildAgentUtil.getBuildDefinitionLabel( map ) );
context.setScmTag( ContinuumBuildAgentUtil.getScmTag( map ) );
buildContext.add( context );
}
buildContextManager.addBuildContexts( buildContext );