Duplicated class from MinimalEcore to write XMI Resource in a system
independent fashion