I think the function "acs_sc_generate_name" should be changed to something like that:
ad_proc -private acs_sc_generate_name {
contract
impl
operation
} {
generate the internal proc name.
@author Neophytos Demetriou
} {
set sql_str "select impl_alias
from acs_sc_impl_aliases
where impl_name =:impl and impl_contract_name = :contract and impl_operation_name = :operation"
return [db_string get_data $sql_str -default 0]
}