public Type getBoundGenericType(String parameterName) {
   Binding binding = getBinding(parameterName);
   Type genericType;
   if (binding instanceof Binding2) {
     genericType = ((Binding2) binding).getBindingGenericType();
   } else {
     genericType = binding.getBindingType();
   }
   return genericType;
 }
  public Class getBoundType(String parameterName) {
    Binding binding = getBinding(parameterName);

    return binding == null ? null : binding.getBindingType();
  }