.getConstructor(String.class, String.class, authenticationClass)
.newInstance(user.getNetworkCode(), user.getClientLibraryIdentifier(),
clientLogin));
} catch (IllegalStateException e) {
throw new ServiceException("Could not get ClientLogin token for user.", e);
} catch (AuthTokenException e) {
throw new ServiceException("Could not get ClientLogin token for user.", e);
} catch (InstantiationException e) {
throw new ServiceException("Could not create service class. Check classpath.", e);
} catch (IllegalAccessException e) {
throw new ServiceException(e.getMessage(), e);
} catch (ClassNotFoundException e) {
throw new ServiceException("Could not create service class. Check classpath.", e);
} catch (IllegalArgumentException e) {
throw new ServiceException(e.getMessage(), e);
} catch (SecurityException e) {
throw new ServiceException(e.getMessage(), e);
} catch (InvocationTargetException e) {
throw new ServiceException(e.getMessage(), e);
} catch (NoSuchMethodException e) {
throw new ServiceException("Could not create service class. "
+ "Check that the correct version of AXIS is being used.", e);
}
}