use generics inferred return type for newInstance(classname)
use generics inferred return type for newInstance(classname)

also added a version of newInstance that receives the class object

jpos/jPOS,alcarraz/jPOS,barspi/jPOS,jpos/jPOS,alcarraz/jPOS,jpos/jPOS,barspi/jPOS,barspi/jPOS,alcarraz/jPOS