(no commit message)
[utils] / wicket / components / src / main / java / org / wamblee / wicket / behavior / FlushEntityManagerBehavior.java
index 9ab5dda6d5c4cd845cdb5e08c237d0ce4403eb9d..287bb64ca0bc0d114f88c2eb37a1275fb5d90637 100644 (file)
@@ -57,12 +57,11 @@ public class FlushEntityManagerBehavior extends AbstractPageBehavior {
             if (entityManager.isOpen()) {
                 entityManager.flush();
             }
-        } catch (TransactionRequiredException e) { 
-            throw e; 
-        } catch (PersistenceException e) { 
+        } catch (TransactionRequiredException e) {
             throw e;
-        }
-        catch (Exception e) { 
+        } catch (PersistenceException e) {
+            throw e;
+        } catch (Exception e) {
             LOGGER.log(Level.WARNING, "Could not flush entitymanager", e);
         }
     }