question: public void handleButton1Request ( RequestInvocationEvent event ) throws ModelControlException { ServerSiteModel model = ( ServerSiteModel ) getModel ( ) ; String serverName = ( String ) getPageSessionAttribute ( ServerEditViewBeanBase . PG_ATTR_SERVER_NAME ) ; String serverGroupType = ( String ) getPageSessionAttribute ( PG_ATTR_SERVER_GROUP_TYPE ) ; String name = ( String ) getDisplayFieldValue ( TF_NAME ) ; name = name . trim ( ) ; String host = ( String ) getDisplayFieldValue ( TF_HOST ) ; host = host . trim ( ) ; String port = ( String ) getDisplayFieldValue ( TF_PORT ) ; port = port . trim ( ) ; String type = ( String ) getDisplayFieldValue ( CHOICE_TYPE ) ; if ( ( name . length ( ) > 0 ) && ( port . length ( ) > 0 ) && ( host . length ( ) > 0 ) ) { try { ServerConfigXML xmlObj = model . getServerConfigObject ( serverName ) ; ServerConfigXML . ServerGroup serverGroup = ( serverGroupType . equals ( DSConfigMgr . DEFAULT ) ) ? xmlObj . getDefaultServerGroup ( ) : xmlObj . getSMSServerGroup ( ) ; serverGroup . addHost ( name , host , port , type ) ; model . setServerConfigXML ( serverName , xmlObj . toXML ( ) ) ; backTrail ( ) ; ServerConfigXMLViewBean vb = ( ServerConfigXMLViewBean ) getViewBean ( ServerConfigXMLViewBean . class ) ; removePageSessionAttribute ( PG_ATTR_SERVER_GROUP_TYPE ) ; passPgSessionMap ( vb ) ; vb . forwardTo ( getRequestContext ( ) ) ; } catch ( ConfigurationException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; forwardTo ( ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; forwardTo ( ) ; } } else { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , "serverconfig.create.server.missing.atributes" ) ; forwardTo ( ) ; } }
target:  Handles create server to server configuration XML request.