Add search in base classes to ws_object