Modified the example
Added method to prepend the calling class to the name attribute if present