if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
{
SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
buildAgentUrl );
String releaseId = client.releasePrepare( createProjectMap( project ), releaseProperties,
releaseVersion, developmentVersion, environments, username );
String key = ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() );
addReleasePrepare( releaseId, buildAgentUrl, releaseVersion.get( key ), "prepare",
releaseProperties.getProperty( "preparation-goals" ), username );