iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/naming/jndi/CNNameParser.java
static Name cosNameToName(NameComponent[] cname) {
        Name nm = new CompositeName();
        for (int i = 0; cname != null && i < cname.length; i++) {
            try {
                nm.add(stringifyComponent(cname[i]));
            } catch (InvalidNameException e) {
                // ignore
            }
        }
        return nm;
    }
static Name cosNameToName(NameComponent[] cname) {
        Name nm = new CompositeName();
        for (int i = 0; cname != null && i < cname.length; i++) {
            try {
                nm.add(stringifyComponent(cname[i]));
            } catch (InvalidNameException e) {
                // ignore
            }
        }
        return nm;
    }
Creates a CompositeName from a NameComponent[].
Used by ExceptionMapper and CNBindingEnumeration to convert
a NameComponent[] into a composite name.