final String conMethodName = conClassName + "::getNodeName";
String lstrNodeName = "";
Order objCurrentOrder = spooler_task.order();
if (objCurrentOrder != null) {
lstrNodeName = objCurrentOrder.state();
logger.info (String.format("%1$s: Current NodeName is '%2$s'.", conMethodName, lstrNodeName));
}
else {
Job objCurrentJob = spooler_task.job();
lstrNodeName = objCurrentJob.name();