Slowness in my java appllication?