try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                client.releasePerform( releaseId, goals, arguments, useReleaseProfile, map, username );
    
                addReleaseInProgress( releaseId, "perform", projectId, username );
            }
            // call reload in case we disable the build agent