this.networkManager = networkManager;
}
@Override
protected void doExecute() throws InvalidProcessStateException, ProcessExecutionException {
UserProfile userProfile = null;
try {
UserProfileManager profileManager = networkManager.getSession().getProfileManager();
userProfile = profileManager.getUserProfile(getID(), false);
} catch (GetFailedException | NoSessionException e) {
throw new ProcessExecutionException(e);
}
Index index = userProfile.getFileById(context.getFileKey());
if (index == null) {
throw new ProcessExecutionException("File key not found in user profile.");
}
context.provideIndex(index);