usage of deprecated method lookup(modeltype,type) substituted by
lookup(entityID,modeltype,type). improvements in exception handling.
log info changed to debug