System.out.println(String.format("Client initialized in %.3fs", duration / 1000.0));
duration = System.currentTimeMillis();
System.out.println("Api version: " + client.getApiVersion());
UserData currentUser = client.getCurrentUser();
System.out.println("Current user: '" + currentUser.getTitle() + "' '" + currentUser.getDescription() + "' " +
currentUser.getId());
System.out.println("Publication objects:");
PublicationsFilterData filter = new PublicationsFilterData();
ArrayOfIdentifiableObjectData systemWideList = client.getSystemWideList(filter);
for (IdentifiableObjectData iod : systemWideList.getIdentifiableObjectData()) {