public static String getInetAddress(String id)
throws FBCommException
{
int n = id.indexOf(':');
if(n<=0){throw new FBCommException("INVALID_ID");}
try{System.out.println("Host " + (id.substring(0,n)));
return (id.substring(0,n));
}
catch(IndexOutOfBoundsException e){throw new FBCommException("INVALID_ID");}
}