I agree with JavaPF here, somewhat confusion this.

However, I'm not sure this will work, into the method getSpecificMapper you're passing in a Class<? extends MyBaseElement> but in the method...