http://jira.idempiere.com/browse/IDEMPIERE-124
(transplanted from f02b128a0adee96bf709a9ef09413049f9f703e0)