NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/registerexemption/RegisterPrsExemptionPersistenceAdapter.java
/**
     * converts beis response to NDS response
     */
converts beis response to NDS response
converts beis response to NDS response
@Override
    protected RegisterPrsExemptionNdsResponse doResponseProcess(RegisterPRSExemptionResponse externalResponse,
            NdsSoapRequestAdapterExchangeProxy ndsExchange) throws NdsApplicationException {
        RegisterPrsExemptionNdsResponse registerPrsExemptionNdsResponse = new RegisterPrsExemptionNdsResponse();
        try {
            TypeConverter converter = ndsExchange.getTypeConverter();
            registerPrsExemptionNdsResponse = converter.convertTo(RegisterPrsExemptionNdsResponse.class,
                    externalResponse);
            ndsExchange.setAnExchangeProperty(EXEMPTION_REGISTERED_SUCCESSFULLY, registerPrsExemptionNdsResponse.isSuccess());
            RegisterPrsExemptionPersistenceNestedAdapter persistenceAdapter = new RegisterPrsExemptionPersistenceNestedAdapter() {
                @Override
                public PersistenceManager getPersistenceManager() {
                    return (persistenceManager != null) ? persistenceManager : super.getPersistenceManager();
                }
            };       
            persistenceAdapter.logEvent(ndsExchange,(String) ndsExchange.getAnExchangeProperty(RegisterPrsExemptionLookupIdComponent.PROPERTY_TYPE));
        } catch (TypeConversionException e) {
            throw new NdsApplicationException("Error occured during response conversion process:  " + e.getMessage(),
                    e);
        }
        logger.info("Successfully created the NDS response");
        return registerPrsExemptionNdsResponse;
    }
@ Override protected RegisterPrsExemptionNdsResponse doResponseProcess ( RegisterPRSExemptionResponse externalResponse , NdsSoapRequestAdapterExchangeProxy ndsExchange ) throws NdsApplicationException { RegisterPrsExemptionNdsResponse registerPrsExemptionNdsResponse = new RegisterPrsExemptionNdsResponse ( ) ; try { TypeConverter converter = ndsExchange . getTypeConverter ( ) ; registerPrsExemptionNdsResponse = converter . convertTo ( RegisterPrsExemptionNdsResponse . class , externalResponse ) ; ndsExchange . setAnExchangeProperty ( EXEMPTION_REGISTERED_SUCCESSFULLY , registerPrsExemptionNdsResponse . isSuccess ( ) ) ; RegisterPrsExemptionPersistenceNestedAdapter persistenceAdapter = new RegisterPrsExemptionPersistenceNestedAdapter ( ) { @ Override public PersistenceManager getPersistenceManager ( ) { return ( persistenceManager != null ) ? persistenceManager : super . getPersistenceManager ( ) ; } } ; persistenceAdapter . logEvent ( ndsExchange , ( String ) ndsExchange . getAnExchangeProperty ( RegisterPrsExemptionLookupIdComponent . PROPERTY_TYPE ) ) ; } catch ( TypeConversionException e ) { throw new NdsApplicationException ( "Error occured during response conversion process:  " + e . getMessage ( ) , e ) ; } logger . info ( "Successfully created the NDS response" ) ; return registerPrsExemptionNdsResponse ; }
converts beis response to NDS response
converts beis response to NDS response