java helper class