code: @Override
      public void setConstraintMappings(Configuration<?> config) throws IOException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.entry(tc, "setConstraintMappings", config);
          }
          InputStream inputStream = null;
          ClassLoader ccl = getContextClassLoader();
  
          for (String fileName : getConstraintMapping()) {
              // get an inputstream to the file
              inputStream = ccl.getResource(fileName).openStream();
  
              // if debugging then dump out the input stream to make sure it is valid
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  inputStream = dumpInputStream(inputStream);
                  if (inputStream == null) {
                      // we ran into trouble while dumping the stream... try again
                      inputStream = ccl.getResource(fileName).openStream();
                  }
              }
              config.addMapping(inputStream);
              // add to list so we can close the inputStreams  later.
              mapFileInputStreams.add(inputStream);
          }
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.exit(tc, "setConstraintMappings");
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.ws.beanvalidation.config.ValidationConfigurationInterface#setConstraintMappings(javax.validation.Configuration)