STATE_object_get_object_using_name
Searches for an object with this name. If no object has this name then it returns a NULL If there are several objects with the same name then it returns the first one.