StringTokenizer tokenizer = new StringTokenizer(text, ",");
if ( !tokenizer.hasMoreElements() ) {
throw new PropertyEditorException("<InetAddress>,<port>");
}
InetAddressEditor addressEditor = new InetAddressEditor();
addressEditor.setAsText((String) tokenizer.nextElement());
InetAddress address = (InetAddress) addressEditor.getValue();
if ( !tokenizer.hasMoreElements() ) {
throw new PropertyEditorException("<InetAddress>,<port>");
}
int port = Integer.parseInt((String) tokenizer.nextElement());