protected final URI postLoad(URI input, URI output, List<Integer> fileIds) throws StorageEngineException {
if (fileIds == null || fileIds.isEmpty()) {
fileIds = Collections.singletonList(getFileId());
}
int studyId = getStudyId();
long lock = dbAdaptor.getStudyConfigurationManager().lockStudy(studyId);
checkLoadedVariants(fileIds, getStudyConfiguration());
StudyConfiguration studyConfiguration;
try {
studyConfiguration = getStudyConfiguration(true);
securePostLoad(fileIds, studyConfiguration);
dbAdaptor.getStudyConfigurationManager().updateStudyConfiguration(studyConfiguration, new QueryOptions());
} finally {
dbAdaptor.getStudyConfigurationManager().unLockStudy(studyId, lock);
}
return input;
}