String privateComment = null;
if(!isOpennet())
privateComment = request.getPartAsStringFailsafe("peerPrivateNote", 250).trim();
String trustS = request.getPartAsStringFailsafe("trust", 10);
FRIEND_TRUST trust = null;
if(trustS != null && !trustS.equals(""))
trust = FRIEND_TRUST.valueOf(trustS);
String visibilityS = request.getPartAsStringFailsafe("visibility", 10);
FRIEND_VISIBILITY visibility = null;