<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_component_attribute_name(component):
 """ Gets given Component attribute name. Usage:: u'factoryComponentsManagerUi' :param component: Component to get the attribute name. :type component: unicode :return: Component attribute name. :rtype: object """


        search = re.search(r"(?P<category>\w+)\.(?P<name>\w+)", component)
        if search:
            name = "{0}{1}{2}".format(
                search.group("category"), search.group("name")[0].upper(), search.group("name")[1:])
            LOGGER.debug("> Component name: '{0}' to attribute name Active_QLabel: '{1}'.".format(component, name))
        else:
            name = component
        return name