private boolean inNamespace(String uri,String namespace){
  return uri.startsWith(namespace) && uri.indexOf('/',namespace.length()) < 0;
}

private boolean inNamespace ( String uri , String namespace ) { return uri . startsWith ( namespace ) && uri . indexOf ( '/' , namespace . length ( ) ) < 0 ; }
is a uri in just this namespace ? the trouble is that some namespaces are suffixes of one another . for now / isn ' t a valid character after a namespace so we can use its absence to determine that we ' re just in the provided namespace and not a suffix namespace .
