String id = asterisksipuserElem.elementText("id");
try {
AsteriskSipUsers asterisksipuser = new AsteriskSipUsers();
//the primary key must be null for new objects if its an auto-increment
asterisksipuser.setAccountcode(unformatString(asterisksipuserElem
.element("accountcode").getText()));
asterisksipuser.setDisallow(unformatString(asterisksipuserElem
.element("disallow").getText()));
asterisksipuser.setAllow(unformatString(asterisksipuserElem
.element("allow").getText()));
asterisksipuser.setAllowoverlap(unformatString(asterisksipuserElem
.element("allowoverlap").getText()));
asterisksipuser.setAllowsubscribe(unformatString(asterisksipuserElem
.element("allowsubscribe").getText()));
asterisksipuser.setAllowtransfer(unformatString(asterisksipuserElem
.element("allowtransfer").getText()));
asterisksipuser.setAmaflags(unformatString(asterisksipuserElem
.element("amaflags").getText()));
asterisksipuser.setAutoframing(unformatString(asterisksipuserElem
.element("autoframing").getText()));
asterisksipuser.setAuth(unformatString(asterisksipuserElem
.element("auth").getText()));
asterisksipuser.setBuggymwi(unformatString(asterisksipuserElem
.element("buggymwi").getText()));
asterisksipuser.setCallgroup(unformatString(asterisksipuserElem
.element("callgroup").getText()));
asterisksipuser.setCallerid(unformatString(asterisksipuserElem
.element("callerid").getText()));
asterisksipuser.setCid_number(unformatString(asterisksipuserElem
.element("cid_number").getText()));
asterisksipuser.setFullname(unformatString(asterisksipuserElem
.element("fullname").getText()));
asterisksipuser.setCallingpres(unformatString(asterisksipuserElem
.element("callingpres").getText()));
asterisksipuser.setCanreinvite(unformatString(asterisksipuserElem
.element("canreinvite").getText()));
asterisksipuser.setContext(unformatString(asterisksipuserElem
.element("context").getText()));
asterisksipuser.setDefaultip(unformatString(asterisksipuserElem
.element("defaultip").getText()));
asterisksipuser.setDtmfmode(unformatString(asterisksipuserElem
.element("dtmfmode").getText()));
asterisksipuser.setFromuser(unformatString(asterisksipuserElem
.element("fromuser").getText()));
asterisksipuser.setFromdomain(unformatString(asterisksipuserElem
.element("fromdomain").getText()));
asterisksipuser.setFullcontact(unformatString(asterisksipuserElem
.element("fullcontact").getText()));
asterisksipuser.setG726nonstandard(unformatString(asterisksipuserElem
.element("g726nonstandard").getText()));
asterisksipuser.setHost(unformatString(asterisksipuserElem
.element("host").getText()));
asterisksipuser.setInsecure(unformatString(asterisksipuserElem
.element("insecure").getText()));
asterisksipuser.setIpaddr(unformatString(asterisksipuserElem
.element("ipaddr").getText()));
asterisksipuser.setLanguage(unformatString(asterisksipuserElem
.element("language").getText()));
asterisksipuser.setLastms(unformatString(asterisksipuserElem
.element("lastms").getText()));
asterisksipuser.setMailbox(unformatString(asterisksipuserElem
.element("mailbox").getText()));
asterisksipuser.setMaxcallbitrate(importIntegerType(unformatString(asterisksipuserElem
.element("maxcallbitrate").getText())));
asterisksipuser.setMohsuggest(unformatString(asterisksipuserElem
.element("mohsuggest").getText()));
asterisksipuser.setMd5secret(unformatString(asterisksipuserElem
.element("md5secret").getText()));
asterisksipuser.setMusiconhold(unformatString(asterisksipuserElem
.element("musiconhold").getText()));
asterisksipuser.setName(unformatString(asterisksipuserElem
.element("name").getText()));
asterisksipuser.setNat(unformatString(asterisksipuserElem
.element("nat").getText()));
asterisksipuser.setOutboundproxy(unformatString(asterisksipuserElem
.element("outboundproxy").getText()));
asterisksipuser.setDeny(unformatString(asterisksipuserElem
.element("deny").getText()));
asterisksipuser.setPermit(unformatString(asterisksipuserElem
.element("permit").getText()));
asterisksipuser.setPickupgroup(unformatString(asterisksipuserElem
.element("pickupgroup").getText()));
asterisksipuser.setPort(unformatString(asterisksipuserElem
.element("port").getText()));
asterisksipuser.setProgressinband(unformatString(asterisksipuserElem
.element("progressinband").getText()));
asterisksipuser.setPromiscredir(unformatString(asterisksipuserElem
.element("promiscredir").getText()));
asterisksipuser.setQualify(unformatString(asterisksipuserElem
.element("qualify").getText()));
asterisksipuser.setRegexten(unformatString(asterisksipuserElem
.element("regexten").getText()));
asterisksipuser.setRegseconds(importIntegerType(unformatString(asterisksipuserElem
.element("regseconds").getText())));
asterisksipuser.setRfc2833compensate(unformatString(asterisksipuserElem
.element("rfc2833compensate").getText()));
asterisksipuser.setRtptimeout(unformatString(asterisksipuserElem
.element("rtptimeout").getText()));
asterisksipuser.setRtpholdtimeout(unformatString(asterisksipuserElem
.element("rtpholdtimeout").getText()));
asterisksipuser.setSecret(unformatString(asterisksipuserElem
.element("secret").getText()));
asterisksipuser.setSendrpid(unformatString(asterisksipuserElem
.element("sendrpid").getText()));
asterisksipuser.setSetvar(unformatString(asterisksipuserElem
.element("setvar").getText()));
asterisksipuser.setSubscribecontext(unformatString(asterisksipuserElem
.element("subscribecontext").getText()));
asterisksipuser.setSubscribemwi(unformatString(asterisksipuserElem
.element("subscribemwi").getText()));
asterisksipuser.setT38pt_udptl(unformatString(asterisksipuserElem
.element("t38pt_udptl").getText()));
asterisksipuser.setTrustrpid(unformatString(asterisksipuserElem
.element("trustrpid").getText()));
asterisksipuser.setType(unformatString(asterisksipuserElem
.element("type").getText()));
asterisksipuser.setUseclientcode(unformatString(asterisksipuserElem
.element("useclientcode").getText()));
asterisksipuser.setUsername(unformatString(asterisksipuserElem
.element("username").getText()));
asterisksipuser.setUsereqphone(unformatString(asterisksipuserElem
.element("usereqphone").getText()));
asterisksipuser.setVideosupport(unformatString(asterisksipuserElem
.element("videosupport").getText()));
asterisksipuser.setVmexten(unformatString(asterisksipuserElem
.element("vmexten").getText()));
asteriskDAOImpl.saveAsteriskSipUsers(asterisksipuser);
} catch (Exception e) {