public final class Ap2ApAPIStressTestServer {
public static void main(String[] args) throws Exception {
Skype.setDebug(true);
final Application application = Skype.addApplication(Ap2ApAPIStressTest.APPLICATION_NAME);
final Object lock = new Object();
application.addApplicationListener(new ApplicationAdapter() {
public void connected(final Stream stream) throws SkypeException {
stream.addStreamListener(new StreamAdapter() {
@Override
public void textReceived(String text) throws SkypeException {
try {