Change attributesWithNamespace method signature to public