private Context findContext(final Name name, final ParsedName parsedName) throws NamingException { if (parsedName.namespace() == null || parsedName.namespace().equals("")) { return null; } final NamespaceContextSelector selector = NamespaceContextSelector.getCurrentSelector(); if (selector == null) { throw new NameNotFoundException(name.toString()); } final Context namespaceContext = selector.getContext(parsedName.namespace()); if (namespaceContext == null) { throw new NameNotFoundException(name.toString()); } return namespaceContext; }
private Context findContext(final Name name, final ParsedName parsedName) throws NamingException { if (parsedName.namespace() == null || parsedName.namespace().equals("")) { return null; } final NamespaceContextSelector selector = NamespaceContextSelector.getCurrentSelector(); if (selector == null) { throw new NameNotFoundException(name.toString()); } final Context namespaceContext = selector.getContext(parsedName.namespace()); if (namespaceContext == null) { throw new NameNotFoundException(name.toString()); } return namespaceContext; }
private Context findContext(final Name name, final ParsedName parsedName) throws NamingException { if (parsedName.namespace() == null || parsedName.namespace().equals("")) { return null; } final NamespaceContextSelector selector = NamespaceContextSelector.getCurrentSelector(); if (selector == null) { throw new NameNotFoundException(name.toString()); } final Context namespaceContext = selector.getContext(parsedName.namespace()); if (namespaceContext == null) { throw new NameNotFoundException(name.toString()); } return namespaceContext; }
public Object lookup(final Name name, boolean dereference) throws NamingException { final ParsedName parsedName = parse(name); if (parsedName.namespace() == null) {
private Context findContext(final Name name, final ParsedName parsedName) throws NamingException { if (parsedName.namespace() == null || parsedName.namespace().equals("")) { return null; } final NamespaceContextSelector selector = NamespaceContextSelector.getCurrentSelector(); if (selector == null) { throw new NameNotFoundException(name.toString()); } final Context namespaceContext = selector.getContext(parsedName.namespace()); if (namespaceContext == null) { throw new NameNotFoundException(name.toString()); } return namespaceContext; }