public boolean hasAliases() {
        return aliases != null && !aliases.isEmpty();
    }
Legacy constructor using the &lt;net&gt; config
@param net net, encapsulating mode &amp; name.
src/main/java/io/fabric8/maven/docker/config/NetworkConfig.java