class MetadataRetryContext {

    public void updateRetryContext( String stepKey,
        String message, MetadataVersion version )
    {
        retryContext.setAttribute( stepKey, message );

        if ( version != null )
        {
            retryContext.setAttribute( MetadataSyncJob.VERSION_KEY, version );
        }
    }

}