The $session data type is a reference to a valid InCharge::session object - created by using InCharge::session->new() or InCharge::session->init(). All Domain Manager primitives should be called with reference to an InCharge::session object, as shown:
$session = InCharge::session->init(); @list = $session->getClassInstances( "Router" );