final Class<?> delegateClass = ClassUtil.forName(delegate, getClass()) ;
return delegateClass.newInstance() ;
}
catch (final ClassNotFoundException cnfe)
{
throw new TransportException("Failed to locate delegate class " + delegate, cnfe) ;
}
catch (final InstantiationException ie)
{
throw new TransportException("Failed to instantiate delegate class " + delegate, ie) ;
}
catch (final IllegalAccessException iae)
{
throw new TransportException("Failed to instantiate delegate class " + delegate, iae) ;
}
}