tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private void findContainerIdForOnboardCertificate(SSLCertificateOnboardRequest sslCertificateRequest,
			List<Integer> containerList, String nclmAccessToken) throws Exception {
		if (sslCertificateRequest.getCertType().equalsIgnoreCase(SSLCertificateConstants.INTERNAL)) {
			containerList.add(private_single_san_ts_gp_id_test != 0 ? private_single_san_ts_gp_id_test
					: private_single_san_ts_gp_id);
		} else {
			CertificateData certDetailsExtSsan = null;
			CertificateData certDetailsExtMsan = null;
			int containerIdExtSsan = public_single_san_ts_gp_id_test != 0 ? public_single_san_ts_gp_id_test
					: public_single_san_ts_gp_id;
			int containerIdExtMsan = public_multi_san_ts_gp_id_test != 0 ? public_multi_san_ts_gp_id_test
					: public_multi_san_ts_gp_id;
			certDetailsExtSsan = getLatestCertificateFromNCLM(sslCertificateRequest.getCertificateName(),
					nclmAccessToken, containerIdExtSsan);
			if (certDetailsExtSsan != null && (!ObjectUtils.isEmpty(certDetailsExtSsan))
					&& (!ObjectUtils.isEmpty(certDetailsExtSsan.getCertificateName()))) {
				containerList.add(containerIdExtSsan);
			}
			certDetailsExtMsan = getLatestCertificateFromNCLM(sslCertificateRequest.getCertificateName(),
					nclmAccessToken, containerIdExtMsan);
			if (certDetailsExtMsan != null && (!ObjectUtils.isEmpty(certDetailsExtMsan))
					&& (!ObjectUtils.isEmpty(certDetailsExtMsan.getCertificateName()))) {
				containerList.add(containerIdExtMsan);
			}
		}
	}
/**
	 * Method to find the container Id
	 * @param sslCertificateRequest
	 * @param containerList
	 * @param nclmAccessToken
	 * @throws Exception
	 */
Method to find the container Id
@param sslCertificateRequest
@param containerList
@param nclmAccessToken
@throws Exception
Method to find the container Id @param sslCertificateRequest @param containerList @param nclmAccessToken @throws Exception
private void findContainerIdForOnboardCertificate(SSLCertificateOnboardRequest sslCertificateRequest,
			List<Integer> containerList, String nclmAccessToken) throws Exception {
		if (sslCertificateRequest.getCertType().equalsIgnoreCase(SSLCertificateConstants.INTERNAL)) {
			containerList.add(private_single_san_ts_gp_id_test != 0 ? private_single_san_ts_gp_id_test
					: private_single_san_ts_gp_id);
		} else {
			CertificateData certDetailsExtSsan = null;
			CertificateData certDetailsExtMsan = null;
			int containerIdExtSsan = public_single_san_ts_gp_id_test != 0 ? public_single_san_ts_gp_id_test
					: public_single_san_ts_gp_id;
			int containerIdExtMsan = public_multi_san_ts_gp_id_test != 0 ? public_multi_san_ts_gp_id_test
					: public_multi_san_ts_gp_id;
			certDetailsExtSsan = getLatestCertificateFromNCLM(sslCertificateRequest.getCertificateName(),
					nclmAccessToken, containerIdExtSsan);
			if (certDetailsExtSsan != null && (!ObjectUtils.isEmpty(certDetailsExtSsan))
					&& (!ObjectUtils.isEmpty(certDetailsExtSsan.getCertificateName()))) {
				containerList.add(containerIdExtSsan);
			}
			certDetailsExtMsan = getLatestCertificateFromNCLM(sslCertificateRequest.getCertificateName(),
					nclmAccessToken, containerIdExtMsan);
			if (certDetailsExtMsan != null && (!ObjectUtils.isEmpty(certDetailsExtMsan))
					&& (!ObjectUtils.isEmpty(certDetailsExtMsan.getCertificateName()))) {
				containerList.add(containerIdExtMsan);
			}
		}
	}
private void findContainerIdForOnboardCertificate ( SSLCertificateOnboardRequest sslCertificateRequest , List < Integer > containerList , String nclmAccessToken ) throws Exception { if ( sslCertificateRequest . getCertType ( ) . equalsIgnoreCase ( SSLCertificateConstants . INTERNAL ) ) { containerList . add ( private_single_san_ts_gp_id_test != 0 ? private_single_san_ts_gp_id_test : private_single_san_ts_gp_id ) ; } else { CertificateData certDetailsExtSsan = null ; CertificateData certDetailsExtMsan = null ; int containerIdExtSsan = public_single_san_ts_gp_id_test != 0 ? public_single_san_ts_gp_id_test : public_single_san_ts_gp_id ; int containerIdExtMsan = public_multi_san_ts_gp_id_test != 0 ? public_multi_san_ts_gp_id_test : public_multi_san_ts_gp_id ; certDetailsExtSsan = getLatestCertificateFromNCLM ( sslCertificateRequest . getCertificateName ( ) , nclmAccessToken , containerIdExtSsan ) ; if ( certDetailsExtSsan != null && ( ! ObjectUtils . isEmpty ( certDetailsExtSsan ) ) && ( ! ObjectUtils . isEmpty ( certDetailsExtSsan . getCertificateName ( ) ) ) ) { containerList . add ( containerIdExtSsan ) ; } certDetailsExtMsan = getLatestCertificateFromNCLM ( sslCertificateRequest . getCertificateName ( ) , nclmAccessToken , containerIdExtMsan ) ; if ( certDetailsExtMsan != null && ( ! ObjectUtils . isEmpty ( certDetailsExtMsan ) ) && ( ! ObjectUtils . isEmpty ( certDetailsExtMsan . getCertificateName ( ) ) ) ) { containerList . add ( containerIdExtMsan ) ; } } }
Method to find the container Id
 @param sslCertificateRequest
 @param containerList
 @param nclmAccessToken
 @throws Exception
Method to find the container Id @param sslCertificateRequest @param containerList @param nclmAccessToken @throws Exception