added transferring of attributes from interface to generated class