Java common utilities.