// Convert to the right type and get annotation information
if (annotation.annotationType().toString().endsWith(Constants.PLUGIN_RESPONSE_OVERRIDE_CLASS)) {
ResponseOverride roAnnotation = (ResponseOverride)annotation;
newMethod.setHttpCode(roAnnotation.httpCode());
description = roAnnotation.description();
argNames = roAnnotation.parameters();
newMethod.setOverrideVersion(1);
}
else if(annotation.annotationType().toString().endsWith(Constants.PLUGIN_RESPONSE_OVERRIDE_V2_CLASS)) {
com.groupon.odo.plugin.v2.ResponseOverride roAnnotation = (com.groupon.odo.plugin.v2.ResponseOverride) annotation;
description = roAnnotation.description();