add a setNamespace method which forces to add the namespace to a classname