Added apply method for LocalNamespace and ClusterNamespace to simplify
namespace subscribe.