InputStream inputStream = ClassLoaderUtils.getResourceAsStream(timeStampConfig.getStoreResource());
Store store = new JCAStore(KeyStoreType.valueOf(timeStampConfig.getStoreType()));
store.read(inputStream, timeStampConfig.getStorePassword());
StoreAlias alias = new PasswordAlias(timeStampConfig.getKeyAlias(), timeStampConfig.getKeyPassword());
this.timeStampServer = new BouncyCastleTimeStampServer(store, alias);
} catch (Exception e) {
throw new ServletException(e);
}