ResidenceFunction function = null;
if (nodeName.equalsIgnoreCase("teleport"))
{
function = checkAndGetFunction(residence, ResidenceFunction.TELEPORT);
List<TeleportLocation> targets = new ArrayList<>();
for (Iterator<Element> it2 = element.elementIterator(); it2.hasNext();)
{
Element teleportElement = it2.next();
if ("target".equalsIgnoreCase(teleportElement.getName()))
{
int npcStringId = Integer.parseInt(teleportElement.attributeValue("name"));