if ( isAgentAvailable( buildAgentUrl ) )
{
log.debug( "Checking if project {} is in prepare build queue of build agent {}", projectId,
buildAgentUrl );
SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
buildAgentUrl );
List<Map<String, Object>> projects = client.getProjectsAndBuildDefinitionsInPrepareBuildQueue();
for ( Map<String, Object> context : projects )
{
int pid = ContinuumBuildConstant.getProjectId( context );
int buildId = ContinuumBuildConstant.getBuildDefinitionId( context );