ProfileBuilder builder = ProfileBuilder.Factory.create(versionId, profileId);
builder.setFileConfigurations(profileData.getFiles());
managedProfile = profileService.createProfile(builder.getProfile());
}
current.addProfiles(managedProfile);
} else {
throw new TimeoutException("Timed out waiting for lock");
}
} catch (Exception e) {
LOGGER.error("Error managing work items.", e);