}
}
REFERENCE_STACK.get().removeFirst();
}
ResourceRepresentationMetadata outputPayload = resourceMethod.getRepresentationMetadata();
if (outputPayload != null) {
TypeMirror returnType = outputPayload.getDelegate();
if (returnType instanceof ClassType) {
REFERENCE_STACK.get().addFirst("return type");
ClassDeclaration classDeclaration = ((ClassType) returnType).getDeclaration();
if (classDeclaration != null) {
if (classDeclaration.getAnnotation(XmlRootElement.class) != null) {