naming/src/main/java/org/jboss/as/naming/deployment/JndiName.java
public static JndiName of(final String name) {
        if(name == null || name.isEmpty()) throw NamingLogger.ROOT_LOGGER.invalidJndiName(name);
        final String[] parts = name.split(ENTRY_SEPARATOR);
        JndiName current = null;
        for(String part : parts) {
            current = new JndiName(current, part);
        }
        return current;
    }
public static JndiName of(final String name) {
        if(name == null || name.isEmpty()) throw NamingLogger.ROOT_LOGGER.invalidJndiName(name);
        final String[] parts = name.split(ENTRY_SEPARATOR);
        JndiName current = null;
        for(String part : parts) {
            current = new JndiName(current, part);
        }
        return current;
    }
Create a new instance of the JndiName by breaking the provided string format into a JndiName parts.

@param name The string representation of a JNDI name.
@return The JndiName representation