Java component for validation.