def copy(newname)
            raise "Not all necessary api methods are defined to process this action!" unless api_methods[:copy]
            entry = self.class.find_one(name)
            if entry
                self.class.in_transaction(true) do |token|
                    entryid = self.class.make_call(api_methods[:handle],name,token)
                    self.class.make_call(api_methods[:copy],entryid,newname,token)
                end
            end
        end
def copy(newname)
            raise "Not all necessary api methods are defined to process this action!" unless api_methods[:copy]
            entry = self.class.find_one(name)
            if entry
                self.class.in_transaction(true) do |token|
                    entryid = self.class.make_call(api_methods[:handle],name,token)
                    self.class.make_call(api_methods[:copy],entryid,newname,token)
                end
            end
        end
copy the item on the cobbler server