/**
* Run the examples with the given parameters
*/
private void runAbsenceRequest(String paramUser, String paramPassword, HashMap pipa, HashMap complete) throws Exception {
_log.info("Instanciate token service client");
TokenClient client = new TokenClient(TOKEN_SERVICE);
_log.info("We are trying to authenticate as user:" + paramUser + " with password:" + paramPassword);
String token = client.authenticateUser(paramUser, paramPassword);
_log.info("We have gained a token from the token service. We can use it to call authenticated tempo services");
Property[] props = client.getTokenProperties(token);
String user = (String) PropertyUtils.getProperty(props, AuthenticationConstants.PROPERTY_USER).getValue();
_log.info("Decrypting the token properties. We have successfully logged in as:" + user);
_log.info("Instanciate tms service client");
TempoClient tempoClient = new TempoClient("http://localhost:8080", token, client);