class HmsInventory {

    public boolean addHost( ServerNode serverNode )
    {

        // check that ServerNode is not null
        if ( serverNode == null )
        {
            logger.warn( "In addHost, ServerNode is null." );
            return false;
        }

        // Get all the existing hosts
        List<ServerNode> hosts = this.getHosts();
        if ( hosts == null )
        {
            logger.warn( "In addHost, invenotry does not contain any hosts." );
            hosts = new ArrayList<ServerNode>();
        }

        // add new host
        hosts.add( serverNode );
        return this.setHosts( hosts );
    }

    private  HmsInventory();

}