adding getUriComponent method to ComponentInterface