Java common utilities