It is not necessary for a program to receive its current channel explicitly—see Browsing the current channel. However, a program can get its current
channel from the current task; this enables it to extract containers by name:
Task t = Task.getTask();
Channel custData = t.getCurrentChannel();
if (custData != null) {
Container custRec = custData.getContainer("Customer_Record");
} else {
System.out.println("There is no Current Channel");
}