Switch to .equals() instead of == for String compares of namespaces. Thanks to Nils Meier for the suggestion.