public Map removeInvalidIpFromDozens( Map recordMap, List validIpList )
throws Exception
{
final List recordList = ( List )recordMap.get( "record" );
if( recordList != null )
	{
	for( int i = 0; i < recordList.size(); ++i )
		{
		final Map _record = ( Map )recordList.get( i );
		final String _name = ( String )_record.get( "name" );
		if( _name.equals( host ) )
			{
			String _ip = ( String )_record.get( "content" );
			if( !validIpList.contains( _ip ) )
				{
				info( "Deleting invalid record " + _ip + " from Dozens..." );
				recordMap = MDozensHA.getInstance().deleteRecord( ( String )_record.get( "id" ) );
				}
			}
		}
	}
return recordMap;
}