Element element = iterator.next();
String nodeName = element.getName();
int level = element.attributeValue("level") == null ? 0 : Integer.valueOf(element.attributeValue("level"));
int lease = (int) ((element.attributeValue("lease") == null ? 0 : Integer.valueOf(element.attributeValue("lease"))) * Config.RESIDENCE_LEASE_FUNC_MULTIPLIER);
int npcId = element.attributeValue("npcId") == null ? 0 : Integer.valueOf(element.attributeValue("npcId"));
int listId = element.attributeValue("listId") == null ? 0 : Integer.valueOf(element.attributeValue("listId"));
ResidenceFunction function = null;
if (nodeName.equalsIgnoreCase("teleport"))
{
function = checkAndGetFunction(residence, ResidenceFunction.TELEPORT);
List<TeleportLocation> targets = new ArrayList<>();