if ( ! f.exists() || ! f.canRead()) {
logger.log(Level.WARNING,
"enterprise.deployment.appclient.jws.clientJNLPBadStaticContent",
new Object[] {referringDocument, pathToContent});
} else {
final ApplicationSignedJARManager signedJARManager = helper.signedJARManager();
if (signedJARManager == null && helper instanceof NestedAppClientDeployerHelper) {
/*
* The signed JAR manager should not be null when we deploy
* an app client nested inside an EAR. This is a system error.
*/
logger.log(Level.SEVERE, "enterprise.deployment.appclient.jws.signedJARMgrNull");
} else if (helper instanceof StandaloneAppClientDeployerHelper) {
logger.log(Level.WARNING, "enterprise.deployment.appclient.jws.userReferencedJARFromStandAloneAppClient",
new Object[] {referringDocument, pathToContent});
} else {
try {
final URI signedURI = signedJARManager.addJAR(fileURI);
staticContent.put(pathToContent, signedJARManager.staticContent(signedURI));
} catch (IOException ex) {
logger.log(Level.SEVERE, null, ex);
}
}
}