CLEREZZA-886: fixed to run outside OSGi