common utils in java