class CoreConfigurationDto extends AbstractConfigDto<CoreConfigurationType> {

  @SuppressWarnings("unchecked") static CoreConfigurationDto readFrom(Reader reader)
    throws JAXBException, InvalidConfigurationException
  {
    JAXBContext context = JAXBContext.newInstance(ObjectFactory.class);
    Object po = context.createUnmarshaller().unmarshal(reader);
    CoreConfigurationType parsed = null;
    if (po instanceof CoreConfigurationType)
    {
      parsed = (CoreConfigurationType)po;
    }
    else
    {
      parsed = ((JAXBElement<CoreConfigurationType>)po).getValue();
    }
    validateConfig(parsed);
    return new CoreConfigurationDto(parsed);
  }

    CoreConfigurationDto(CoreConfigurationType jaxBConfig);

}