question: public static String extractUriFromAddress ( String addr ) { String uri = addr ; int index = addr . indexOf ( "<" ) ; if ( index != - 1 ) { uri = addr . substring ( index + 1 , addr . indexOf ( ">" , index ) ) ; } return uri ; }
target:  Extract the URI part of a SIP address