@SuppressWarnings("unchecked") public void load(byte[] data) throws Exception {
  if (data == null) {
    return;
  }
  if (schemaValidator != null) {
    try (InputStream in=new ByteArrayInputStream(data)){
      validateSchemaWithValidator(in);
    }
   }
  try (InputStream in=new ByteArrayInputStream(data)){
    Unmarshaller unmarshaller=jaxbCtx.createUnmarshaller();
    root=(JAXBElement<T>)unmarshaller.unmarshal(in);
    confType=root.getValue();
  }
 }

@ SuppressWarnings ( "unchecked" ) public void load ( byte [ ] data ) throws Exception { if ( data == null ) { return ; } if ( schemaValidator != null ) { try ( InputStream in = new ByteArrayInputStream ( data ) ) { validateSchemaWithValidator ( in ) ; } } try ( InputStream in = new ByteArrayInputStream ( data ) ) { Unmarshaller unmarshaller = jaxbCtx . createUnmarshaller ( ) ; root = ( JAXBElement < T > ) unmarshaller . unmarshal ( in ) ; confType = root . getValue ( ) ; } }
loads the configuration from a byte array .
