Refactored, changed to use stereotypes and annotations to fetch headers.