getParameters modified to allow generic parameters