public String getProcessDataDirectory() throws IOException, InterruptedException, SwapException, DAOException {
String pfad = getProcessDataDirectoryIgnoreSwapping();
if (isSwappedOutGui()) {
ProcessSwapInTask pst = new ProcessSwapInTask();
pst.initialize(this);
pst.execute();
if (pst.getStatusProgress() == -1) {
if (!new File(pfad, "images").exists() && !new File(pfad, "meta.xml").exists()) {
throw new SwapException(pst.getStatusMessage());
} else {
setSwappedOutGui(false);
}
new ProzessDAO().save(this);
}