// owner's point
String ownAddr = FtnTools.getPrimaryFtnAddress().toString();
if (!ownAddr.contains(".")) {
ownAddr += ".1";
}
Link owner = ORMManager.get(Link.class).getFirstAnd("ftn_address", "=",
ownAddr);
if (owner == null) {
owner = new Link();
owner.setLinkName(info.getSysop());
owner.setLinkAddress(ownAddr);
owner.setProtocolHost("-");
owner.setProtocolPort(0);
owner.setPaketPassword(FtnTools.generate8d());
owner.setProtocolPassword(owner.getPaketPassword());
ORMManager.get(Link.class).save(owner);
logger.l1("[+] owner point account created");
logger.l1(String.format("\n\tFTN: %s\n\tAka: %s\n\tPassword: %s\n",
owner.getLinkAddress(), owner.getLinkName(),
owner.getPaketPassword()));
long nice = 1;
Rewrite rw = new Rewrite();
rw.setType(Type.NETMAIL);
rw.setLast(true);
rw.setNice(nice++);