protected void done() {
try {
ProfileInstance profile = get();
// initialise the progress
ProgressState prog = profile.getProgress();
int progress;
if (prog == null) {
progress = 0;
} else {
progress = (int) (UNITY_PERCENT * prog.getCount() / prog.getTarget());
}
profilePanel.getProfileProgressBar().setValue(progress);
profilePanel.setProfile(profile);
profilePanel.getStatusLabel().setText("Profile Loaded OK.");