Added function getComponentName to ComponentPath