Fixed resource reference. Moved fetching of HTTP headers into PostConstruct.