try {
Invokable<? extends AsyncTask<?, ?>, ? extends AsyncTask<?, ?>> cons = constructor(taskClass,
ApiContext.class, dto.getClass());
return cons.invoke(null, context, dto);
} catch (InvocationTargetException e) {
throw new WrapperException(taskClass, dto, e.getTargetException());
} catch (IllegalAccessException e) {
throw new WrapperException(taskClass, dto, e);
}
}