code: public static boolean isAllowed(String url, String method) throws IOException {
  		AuthorizeFaceletsTag authorizeTag = new AuthorizeFaceletsTag();
  		authorizeTag.setUrl(url);
  		authorizeTag.setMethod(method);
  		return authorizeTag.authorizeUsingUrlCheck();
  	}
docs: Returns true if the user is allowed to access the given URL and HTTP
  method combination. The HTTP method is optional and case insensitive.
  @param url to be accessed.
  @param method to be called.
  @return computation if the user is allowed to access the given URL and HTTP method.
  @throws IOException io exception