private List < SimpleJsonSchema > getSchemaFromContext ( JsonMessageValidationContext jsonMessageValidationContext , ApplicationContext applicationContext ) { try { SimpleJsonSchema simpleJsonSchema = applicationContext . getBean ( jsonMessageValidationContext . getSchema ( ) , SimpleJsonSchema . class ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Found specified schema: \"" + jsonMessageValidationContext . getSchema ( ) + "\"." ) ; } return Collections . singletonList ( simpleJsonSchema ) ; } catch ( NoSuchBeanDefinitionException e ) { throw new CitrusRuntimeException ( "Could not find the specified schema: \"" + jsonMessageValidationContext . getSchema ( ) + "\"." , e ) ; } }
Extracts the the schema specified in the jsonMessageValidationContext from the application context