question: public AgentMappings saveAgentMappings ( AgentMappings agentMappings , boolean checkEnvironments ) throws BusinessException , JAXBException , IOException { if ( checkEnvironments ) { checkEnvironments ( agentMappings ) ; } AgentMappings current ; do { current = agentMappingsReference . get ( ) ; if ( current . getRevision ( ) != agentMappings . getRevision ( ) ) { throw new BusinessException ( "Update of the agent mappings." , ConfigurationInterfaceErrorCodeEnum . REVISION_CHECK_FAILED ) ; } } while ( ! agentMappingsReference . compareAndSet ( current , agentMappings ) ) ; agentMappings . setRevision ( agentMappings . getRevision ( ) + 1 ) ; saveAgentMapping ( agentMappings ) ; publishAgentMappingsUpdateEvent ( ) ; return agentMappings ; }
target:  Sets the agent mappings to be used.