[haiyang] validate register more than one same class with same name