return listener.awaitAndGet();
}
@Override
public NetworkContent getUserProfileTask(String userId) {
IParameters parameters = new Parameters().setLocationKey(userId).setDomainKey(
H2HConstants.USER_PROFILE_TASK_DOMAIN);
FutureGet futureGet = getPeer()
.get(parameters.getLKey())
.from(new Number640(parameters.getLKey(), parameters.getDKey(), Number160.ZERO,
Number160.ZERO))
.to(new Number640(parameters.getLKey(), parameters.getDKey(), Number160.MAX_VALUE,
Number160.MAX_VALUE)).ascending().returnNr(1).start();
FutureGetListener listener = new FutureGetListener(parameters);
futureGet.addListener(listener);
return listener.awaitAndGet();
}