Looks like this is direct duplication of UpdateTransUnitHandler.java:~94-101