Simplified fix, using Occi::Core::Entity.new