Iterator it = ca.getAllArguments();
ArrayList listArg = new ArrayList();
while (it.hasNext()) {
listArg.add(it.next());
}
final Object[] args = listArg.toArray();
final JADEPrincipal owner = ca.getOwner();
final Credentials initialCredentials = ca.getInitialCredentials();
// Do the job in a separated thread to avoid deadlock
Thread auxThread = new Thread() {