CustomAcceptsExecutor customAcceptsExecutor = new CustomAcceptsExecutor(stepInvoker, container, find(CustomAcceptsFailCallback.class), interceptorClass);
InterceptorAcceptsExecutor interceptorAcceptsExecutor = new InterceptorAcceptsExecutor(stepInvoker, parametersResolver, find(Accepts.class), interceptorClass);
boolean customAccepts = customAcceptsExecutor.accept(interceptorClass);
boolean internalAccepts = interceptorAcceptsExecutor.accept(interceptorClass);
if(customAccepts && internalAccepts){
throw new VRaptorException("Interceptor "+interceptorClass+" must declare internal accepts or custom, not both.");
}
this.acceptsExecutor = customAccepts?customAcceptsExecutor:interceptorAcceptsExecutor;
}