}
final RegistryQuery query =
new RegistryQuery( regURL.toString(), queryStr );
TableProducer producer = new TableProducer() {
public StarTable getTable() throws TaskException {
try {
return new RegistryStarTable( query );
}
catch ( Exception e ) {
throw new ExecutionException( "Query failed: "
+ e.getMessage(), e );
}
}
};
StarTable table;
try {
table = producer.getTable();
} catch (Exception e) {
e.printStackTrace();
return;
}