question: public static void AddAgentToGroup ( AMIdentity group , AMIdentity agent ) throws IdRepoException , SSOException , ConfigurationException { if ( ! group . isExists ( ) ) { String [ ] param = { group . getName ( ) } ; throw new ConfigurationException ( "cannot.add.agent.to.group.group.does.not.exist" , param ) ; } if ( ! agent . isExists ( ) ) { String [ ] param = { agent . getName ( ) } ; throw new ConfigurationException ( "cannot.add.agent.to.group.agent.does.not.exist" , param ) ; } String agentType = getAgentType ( agent ) ; String agentGroupType = getAgentType ( group ) ; if ( supportLocalProperties ( agentType ) && isPropertiesLocallyStored ( agent ) ) { String agentName = agent . getName ( ) ; String [ ] param = { agentName } ; throw new ConfigurationException ( "cannot.add.agent.to.group.proeprties.locally.stored" , param ) ; } if ( ! agentType . equals ( agentGroupType ) ) { String agentName = agent . getName ( ) ; String groupName = group . getName ( ) ; String [ ] param = { agentName , groupName } ; throw new ConfigurationException ( "cannot.add.agent.to.group.type.mismatched" , param ) ; } group . addMember ( agent ) ; }
target:  Adds an agent to a group.