Add an attribute to the given container and each of its children
including ports, entities and relations, but not including attributes.
The name of the attribute is automatically generated by putting an "_"
before the simple class name of the attribute to be created.

Parameters:

container - The container.

attributeClass - The attribute class.

Throws:

java.lang.InstantiationException - If an attribute cannot be
instantiated.

java.lang.IllegalAccessException - If the constructor of the attribute
class is not accessible.

java.lang.reflect.InvocationTargetException - If the arguments to constructor is
not valid.