private Representation doHandle(Method method, Representation entity) {
Representation result = null;
if (getAnnotation(method) != null) {
// We know the method is supported, let's check the entity.
AnnotationInfo annotationInfo = getAnnotation(method, entity);
if (annotationInfo != null) {
result = doHandle(annotationInfo, null);
} else {
// The request entity is not supported.