class SwitchNodeConnector extends NodeConnector {

    public GetSwitchesResponse getSwitchNodes()
    {
        GetSwitchesResponse switchesResponse = new GetSwitchesResponse();
        for ( String s : switchNodeMap.keySet() )
        {
            SwitchNode val = switchNodeMap.get( s );
            ISwitchService switchService = switchServiceMap.get( s );
            /*
             * Class<ISwitchService> switchServiceClass = switchServiceClassMap.get(s); ISwitchService switchService =
             * null; if(switchServiceClass != null) { try { switchService =
             * (ISwitchService)switchServiceClass.newInstance(); } catch (InstantiationException e) { logger.error(
             * "Exception during creating new Instance of class:" + switchServiceClass, e); } catch
             * (IllegalAccessException e) { logger.error("Exception during creating new Instance of class:" +
             * switchServiceClass, e); } } else { logger.error("Unable to get Switch Service for Switch node " + s); }
             */
            GetSwitchesResponseItem item = new GetSwitchesResponseItem( s, val.getIpAddress() );
            item.setType( switchService != null ? switchService.getSwitchType() : null );
            switchesResponse.add( item );
        }
        return switchesResponse;
    }

    private  SwitchNodeConnector();

}