protected String convertJndiName(String jndiName) {
        // Prepend container prefix if not already specified and no other scheme given.
        if (isResourceRef() && !jndiName.startsWith(CONTAINER_PREFIX) && jndiName.indexOf(':') == -1) {
            jndiName = CONTAINER_PREFIX + jndiName;
        }
        return jndiName;
    }
Convert the given JNDI name into the actual JNDI name to use.
<p>The default implementation applies the "java:comp/env/" prefix if
"resourceRef" is "true" and no other scheme (e.g. "java:") is given.

@param jndiName the original JNDI name
@return the JNDI name to use
@see #CONTAINER_PREFIX
@see #setResourceRef
core/src/main/java/org/apache/shiro/jndi/JndiLocator.java