*/
public Invoker newInvoker(final String targettype)
throws InvokerException {
Class invokerClass = (Class) invokerClasses.get(targettype);
if (invokerClass == null) {
throw new InvokerException("No Invoker registered for "
+ "targettype \"" + targettype + "\"");
}
Invoker invoker = null;
try {
invoker = (Invoker) invokerClass.newInstance();
} catch (InstantiationException ie) {
throw new InvokerException(ie.getMessage(), ie.getCause());
} catch (IllegalAccessException iae) {
throw new InvokerException(iae.getMessage(), iae.getCause());
}
return invoker;
}