NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/converter/ToGetPRSAccountExemptionsRequestConverter.java
/**
	 * @param request
	 *            - This is the NDS request that needs transforming for BEIS
	 *            foundation layer to understand.
	 * @return - the provided details converted to a
	 *         GetPRSAccountExemptionsRequest object ready to send to the
	 *         external service.
	 */
@param request
- This is the NDS request that needs transforming for BEIS
foundation layer to understand.
@return - the provided details converted to a
GetPRSAccountExemptionsRequest object ready to send to the
external service.
@param request - This is the NDS request that needs transforming for BEIS foundation layer to understand . @return - the provided details converted to a GetPRSAccountExemptionsRequest object ready to send to the external service .
@Converter
	public static GetPRSAccountExemptionsRequest converting(GetPRSAccountExemptionsNdsRequest request) {
		logger.info("Starting Conversion For getting PRS account exmeption request");
		GetPRSAccountExemptionsRequest backOfficeRequest = new GetPRSAccountExemptionsRequest();	
		if(request.getUserType() == UserType.LANDLORD){
		    backOfficeRequest.setLandlordPartyRef( new BigInteger(request.getAccountId()));
		}else{
		    backOfficeRequest.setAgentPartyRef( new BigInteger(request.getAccountId()));
		}		     
		if(!StringUtil.isBlank(request.getExemptionRefNo()) ){
            backOfficeRequest.setExemptionRefNo(StringToBigIntegerConverter.convert(request.getExemptionRefNo())); 
        }
		logger.info("Completed Conversion For getting PRS account exmeption request");
		return backOfficeRequest;
	}
@ Converter public static GetPRSAccountExemptionsRequest converting ( GetPRSAccountExemptionsNdsRequest request ) { logger . info ( "Starting Conversion For getting PRS account exmeption request" ) ; GetPRSAccountExemptionsRequest backOfficeRequest = new GetPRSAccountExemptionsRequest ( ) ; if ( request . getUserType ( ) == UserType . LANDLORD ) { backOfficeRequest . setLandlordPartyRef ( new BigInteger ( request . getAccountId ( ) ) ) ; } else { backOfficeRequest . setAgentPartyRef ( new BigInteger ( request . getAccountId ( ) ) ) ; } if ( ! StringUtil . isBlank ( request . getExemptionRefNo ( ) ) ) { backOfficeRequest . setExemptionRefNo ( StringToBigIntegerConverter . convert ( request . getExemptionRefNo ( ) ) ) ; } logger . info ( "Completed Conversion For getting PRS account exmeption request" ) ; return backOfficeRequest ; }
@param request
            - This is the NDS request that needs transforming for BEIS
            foundation layer to understand.
@param request - This is the NDS request that needs transforming for BEIS foundation layer to understand .
//do the conversion