Class<? extends Annotation> annotationType = mappingAnnotation.annotationType();
if (annotationType.equals(YarnEnvironments.class)) {
sb.append("environment");
} else if (annotationType.equals(YarnEnvironment.class)) {
YarnEnvironment headerAnnotation = (YarnEnvironment) mappingAnnotation;
sb.append(this.determineEnvironmentExpression(headerAnnotation, methodParameter));
} else if (annotationType.equals(YarnParameters.class)) {
Assert.isTrue(Map.class.isAssignableFrom(parameterType),
"The @YarnParameters annotation can only be applied to a Map-typed parameter.");
sb.append("parameters");