public Object lookup(ArquillianResource arquillianResource, Annotation... annotations) {
// retrieves the http request
HttpServletRequest request = requestInstance.get();
// retrieves the rest context as a attribute from request
RestContext restContext = (RestContext) request.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE);
if(restContext == null) {
throw new RestContextNotFoundException("The instance of RestContext can not be lookup."
+ " Please check whether you had correctly configured interceptors");