private void setContextAttributes(ServletContextHandler context, Configuration conf) {
    context.getServletContext().setAttribute(CONF_CONTEXT_ATTRIBUTE, conf);
    context.getServletContext().setAttribute(ADMINS_ACL, adminsAcl);
  }
This method configures the alias checks for the given ServletContextHandler based on the
provided value of shouldServeAlias.<br>
If shouldServeAlias is set to true, it checks if SymlinkAllowedResourceAliasChecker is already
a part of the alias check list. If it is already a part of the list, no changes are made, else,
it adds it to the list.<br>
If shouldServeAlias is set to false, it clears all alias checks from the
ServletContextHandler.<br>
.
@param context          The ServletContextHandler whose alias checks are to be configured
@param shouldServeAlias Whether aliases should be allowed or not
hbase-http/src/main/java/org/apache/hadoop/hbase/http/HttpServer.java