public static boolean hasJNDIScheme ( String jndiName ) { int colonIndex = jndiName . indexOf ( ' ' ) ; int slashIndex = jndiName . indexOf ( ' ' ) ; return colonIndex != - 1 && ( slashIndex == - 1 || colonIndex < slashIndex ) ; }
Return true if a JNDI name has a scheme .