getComponentByName
the name can not be an empty string