### Environment

* Dubbo version: 2.7.3
* Operating System version: CentOS7
* Java version: 1.8

### Steps to reproduce this issue

1. Set two protocal, with different "register" attribute

```xml
<dubbo:protocol name="dubbo" port="8751" register="true"  />
<dubbo:protocol name="hessian" port="8752" register="false" />
```

2. use the zookeeper registry center

```xml
<dubbo:registry address="..." file="./.dubbo_cache" />
```

3. start the server and view the provider in zkCli


### Expected Result
only the dubbo is registed

### Actual Result
the dubbo and hession protocol are registed

*/
    private Boolean register = true;
    /**
     * Warm up period
     */
    private Integer warmup;
    /**
     * The serialization type
     */
    private String serialization;
    public String getVersion() {
        return version;
    }
    public void setVersion(String version) {
        checkKey(VERSION_KEY, version);
        this.version = version;
    }
    public String getGroup() {
        return group;
    }
    public void setGroup(String group) {
        checkKey(GROUP_KEY, group);
        this.group = group;
    }
    public Integer getDelay() {
        return delay;
    }
    public void setDelay(Integer delay) {
        this.delay = delay;
    }