Prepare add java service thread.