}
private boolean isReadable(final RequestSpecificConsumesProducesAcceptor candidate) {
final Invocable invocable = candidate.methodAcceptorPair.model.getInvocable();
final Method handlingMethod = invocable.getHandlingMethod();
final Parameter entityParam = getEntityParam(invocable);
if (entityParam == null) {
return true;
} else {
final Class<?> entityType = entityParam.getRawType();
for (final MessageBodyReader<?> reader : workers.getMessageBodyReadersForType(entityType)) {
if (reader.isReadable(entityType, entityParam.getType(),
handlingMethod.getDeclaredAnnotations
(), candidate.consumes.getCombinedMediaType())) {
return true;
}
}