</BUG>
TypeVariable[] genericParameters = readClass.getSuperclass().getTypeParameters();
Type[] implementations = ((ParameterizedTypeImpl) readClass.getGenericSuperclass()).getActualTypeArguments();
for (int i = 0; i < genericParameters.length; i++) {
<BUG>if(genericParameters[i].getName().equals(((TypeVariableImpl) parameterizedType).getName())) {
</BUG>
return implementations[i];
}
}
}

operation.defaultResponse(new Response().description("successful operation"));
}
return operation;
}
private static Type getActualType(Class readClass, Type parameterizedType) {
if (parameterizedType instanceof TypeVariableImpl) {
TypeVariable[] genericParameters = readClass.getSuperclass().getTypeParameters();
Type[] implementations = ((ParameterizedTypeImpl) readClass.getGenericSuperclass()).getActualTypeArguments();
for (int i = 0; i < genericParameters.length; i++) {
if (genericParameters[i].getName().equals(((TypeVariableImpl) parameterizedType).getName())) {
return implementations[i];
}
}
}
