(CDAP-718) Added auto output key/value classes detection to MapReduce.

should you check whether it has exactly 4 type parameters? (If not, ten it is not a mapper or reducer)