Adds generic high level functionality to {TaskDto}.
@author Ignasi Barrera
@author Francesc Montserrat
@param < T> The type of the result generated by the task.
@param < D> The type of the dto generated by the task.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.