/** create a sip uri. * *@param uri -- the uri to parse. */ public javax.sip.address.SipURI createSipURI(String uri) throws ParseException { if (uri == null) throw new NullPointerException("null URI"); try { StringMsgParser smp = new StringMsgParser(); SipUri sipUri = smp.parseSIPUrl(uri); return (SipURI) sipUri; } catch (ParseException ex) { throw new ParseException(ex.getMessage(), 0); } }