@Override
    protected InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException {

        try {
            InetAddress toMatch = getAddress();
            // One time only warn against use of wildcard addresses
            if (!anyLocalLogged && toMatch.isAnyLocalAddress()) {
                MGMT_OP_LOGGER.invalidWildcardAddress(this.address, INET_ADDRESS, ANY_ADDRESS);
                anyLocalLogged = true;
            }


            if( toMatch.equals(address) ) {
                if (toMatch instanceof Inet6Address) {
                    return matchIPv6((Inet6Address) toMatch, (Inet6Address) address);
                }
                return toMatch;
            }
        } catch (UnknownHostException e) {
            // One time only log a warning
            if (!unknownHostLogged) {
                MGMT_OP_LOGGER.cannotResolveAddress(this.address);
                unknownHostLogged = true;
            }
            return null;
        }
        return null;
    }
@ Override protected InetAddress isAcceptable ( NetworkInterface networkInterface , InetAddress address ) throws SocketException { try { InetAddress toMatch = getAddress ( ) ; if ( ! anyLocalLogged && toMatch . isAnyLocalAddress ( ) ) { MGMT_OP_LOGGER . invalidWildcardAddress ( this . address , INET_ADDRESS , ANY_ADDRESS ) ; anyLocalLogged = true ; } if ( toMatch . equals ( address ) ) { if ( toMatch instanceof Inet6Address ) { return matchIPv6 ( ( Inet6Address ) toMatch , ( Inet6Address ) address ) ; } return toMatch ; } } catch ( UnknownHostException e ) { if ( ! unknownHostLogged ) { MGMT_OP_LOGGER . cannotResolveAddress ( this . address ) ; unknownHostLogged = true ; } return null ; } return null ; }
{@inheritDoc}

@return <code>getAddress()</code> if the <code>address</code> is the same as the one returned by {@link #getAddress()}.