MOD: fixed NPE in ItemUtil and cleaned up the class
ADD: test for ItemUtil
MOD: changed error message on unknown exceptions in DefaultCommandManager