Add Resource and DSL for exposing attributes