refactor javasssist