fixed class loading issues in jsp version
removed thead registry. singleton should be used instead