templateContext.set("sones", localSones);
List<OwnIdentity> ownIdentitiesWithoutSone = getOwnIdentitiesWithoutSone(webInterface.getCore());
templateContext.set("identitiesWithoutSone", ownIdentitiesWithoutSone);
if (request.getMethod() == Method.POST) {
String id = request.getHttpRequest().getPartAsStringFailsafe("identity", 44);
OwnIdentity selectedIdentity = null;
for (OwnIdentity ownIdentity : ownIdentitiesWithoutSone) {
if (ownIdentity.getId().equals(id)) {
selectedIdentity = ownIdentity;
break;
}