Show error message if more than one attribute with same name.
Cleanup (remove unused java classes) only if no error occurred.
Improved error messages when duplicated attributes.