if (extension.length() != 3) {
throw new UserException("The file name extension '" + extension
+ "' must be 3 characters long.");
}
process = new GeneralImport(getEditUri().resolve(
new UriPathElement(Long.toString(processId))).append(
"/"), fileItem.getInputStream(), extension);
} catch (IOException e) {
throw new InternalException(e);
}
processes.put(processId, process);