protected final V inputValidation ( final T serviceRequest ) { final Set < ConstraintViolation < T > > validateRequest = validateRequest ( serviceRequest ) ; if ( ! validateRequest . isEmpty ( ) ) { final CreateApplicationEventRequest eventRequest = createApplicationEventForService ( serviceRequest ) ; final V response = createErrorResponse ( ) ; handleInputViolations ( eventRequest , validateRequest , response ) ; createApplicationEventService . processService ( eventRequest ) ; return response ; } else { return null ; } }
Input validation .