Java utilities