}
//this one trusts anyone
//CertificateTrustValidator validator=TestIdentityProvider.TRUST_EVERYONE;
System.out.println("Get PES proxy");
RemotePesService pesProxy = getServiceProxy(PES_SERVICE_ENDPOINT, CLIENT_KEYSTORE, CLIENT_PASSWORD, validator);
//////////////test send notification from file, call to the service\\\\\\\\\\\\\\\\\\\\
System.out.println("******************************************** ");
System.out.println("Send test notification from file to the service");
System.out.println("********************************************* ");
Document doc = FileUtils.parseXML(new File(strNotifMessageFile));
notifyPes(pesProxy, doc);
//////////////////////// Estimation Job , call to a resource\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
System.out.println("**************************************** ");
System.out.println("Call the service to estimate resources ");
System.out.println("**************************************** ");
//create resource
PesResource pesResourceProxy = null;
EndpointReferenceType estResourceEPR = null;
// EndpointReferenceType reestResourceEPR = null;
try {
//create resource
System.out.println("Create PES resource");
X509Certificate cert = getKeystoreCertificate(CLIENT_KEYSTORE, CLIENT_PASSWORD, ALIAS);
MatchPattern mp = new MatchPattern(cert.getSubjectDN().toString(), cert);
estResourceEPR = pesProxy.createPesResource("myResource", mp);
} catch (RemoteException ex) {
throw new RuntimeException("Error encountered while creating a resource/Job" + ex.getMessage(), ex);
}
//call the resuorce prediction method