Add Type attribute to Resource