List<Pair<StepContextId,INodeEntry>> currentContext = stepContext.getCurrentContextPairs();
if (null != currentContext || null!=currentNode) {
final HashMap<String, String> loggingContext = new HashMap<String, String>();
if (null != currentNode) {
loggingContext.put("node", currentNode.getNodename());
loggingContext.put("user", currentNode.extractUserName());
}
if (null != currentContext) {
StepContextId last = currentContext.get(currentContext.size() - 1).getFirst();
if (last.getStep() > -1) {
loggingContext.put("step", Integer.toString(last.getStep()));