@SuppressWarnings("unchecked")
private <T> boolean isCompatible(Class<T> workerClass, MessageBodyWorkerPair<T> messageBodyWorkerPair, Class c,
MediaType mediaType) {
if (messageBodyWorkerPair.providerClassParam == null) {
DeclaringClassInterfacePair p = ReflectionHelper.getClass(
messageBodyWorkerPair.provider.getClass(), workerClass);
Class[] classArgs = ReflectionHelper.getParameterizedClassArguments(p);
messageBodyWorkerPair.providerClassParam = (classArgs != null) ? classArgs[0] : null;
}