// lookup parameter 'host'
try {
host = parameters.getParameter("host");
// test if host is not the empty string
if (host == "") {
throw new ParameterException("The parameter 'host' may not be the empty string");
}
} catch (ParameterException pe) {
// rethrow as a ProcessingException
throw new ProcessingException("Parameter 'host' not specified",pe);
}
String bindname;
// lookup parameter 'bindname'
try {
bindname = parameters.getParameter("bindname");
// test if bindname is not the empty string
if (bindname == "") {
throw new ParameterException("The parameter 'bindname' may not be the empty string");
}
} catch (ParameterException pe) {
// rethrow as a ProcessingException
throw new ProcessingException("Parameter 'bindname' not specified",pe);
}