in shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/repository/impl/AbstractXmlRepositoryImpl.java [55:68]
public synchronized E load() {
if (!file.exists()) {
try {
return clazz.newInstance();
} catch (final InstantiationException | IllegalAccessException ex) {
throw new JobConsoleException(JobConsoleException.SERVER_ERROR, ex.getMessage());
}
}
try {
return (E) jaxbContext.createUnmarshaller().unmarshal(file);
} catch (final JAXBException ex) {
throw new JobConsoleException(JobConsoleException.SERVER_ERROR, ex.getMessage());
}
}