tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private boolean validateApplicationNameForOnboard(SSLCertificateOnboardRequest sslCertificateRequest) {
		boolean isValidAppName = false;
		ResponseEntity<String> appResponse = workloadDetailsService.getWorkloadDetailsByAppName(sslCertificateRequest.getAppName());
		if ((!sslCertificateRequest.getAppName().equalsIgnoreCase(SSLCertificateConstants.APP_NAME_OTHER)) && (appResponse != null && HttpStatus.OK.equals(appResponse.getStatusCode()))) {
			isValidAppName = true;
		}
		return isValidAppName;
	}
/**
	 * Method to validate whether the given application name is valid
	 * @param sslCertificateRequest
	 * @return
	 */
Method to validate whether the given application name is valid
@param sslCertificateRequest
@return
Method to validate whether the given application name is valid @param sslCertificateRequest @return
private boolean validateApplicationNameForOnboard(SSLCertificateOnboardRequest sslCertificateRequest) {
		boolean isValidAppName = false;
		ResponseEntity<String> appResponse = workloadDetailsService.getWorkloadDetailsByAppName(sslCertificateRequest.getAppName());
		if ((!sslCertificateRequest.getAppName().equalsIgnoreCase(SSLCertificateConstants.APP_NAME_OTHER)) && (appResponse != null && HttpStatus.OK.equals(appResponse.getStatusCode()))) {
			isValidAppName = true;
		}
		return isValidAppName;
	}
private boolean validateApplicationNameForOnboard ( SSLCertificateOnboardRequest sslCertificateRequest ) { boolean isValidAppName = false ; ResponseEntity < String > appResponse = workloadDetailsService . getWorkloadDetailsByAppName ( sslCertificateRequest . getAppName ( ) ) ; if ( ( ! sslCertificateRequest . getAppName ( ) . equalsIgnoreCase ( SSLCertificateConstants . APP_NAME_OTHER ) ) && ( appResponse != null && HttpStatus . OK . equals ( appResponse . getStatusCode ( ) ) ) ) { isValidAppName = true ; } return isValidAppName ; }
Method to validate whether the given application name is valid
 @param sslCertificateRequest
 @return
Method to validate whether the given application name is valid @param sslCertificateRequest @return