public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) {
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) {
    public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) {        String workflowname = "unknown";        long workflow_id = -1;        if (entry != null) {            workflowname = entry.getWorkflowName();            workflow_id = entry.getId();        }        boolean groupByInstance = false;        String useInstance = (String) args.get("addInstanceId");        if (useInstance != null) {            groupByInstance = TextUtils.parseBoolean(useInstance);        }        String categoryName = "OSWorkflow";        if (args.get("Category") != null) {            categoryName = (String) args.get("Category");        }        String category = categoryName + "." + workflowname;        if (groupByInstance) {            category += ("." + (Long.toString(workflow_id)));        }        Log log = LogFactory.getLog(category);        return log;    }