String klass = ItemConfiguration.getItemClass(config);
if (item == null) {
try {
item = (Item) Class.forName(klass).newInstance();
item.enableLogging(getLogger());
} catch (Exception e) {
String errorMsg = "Exception when trying to instanciate: " + klass
+ " with exception: " + e.fillInStackTrace();
// an exception occured when trying to instanciate