{
ServiceDefinition serviceDefinition = serviceBinding.getServiceDefinition();
if(serviceDefinition != null)
{
String serviceClassName = serviceDefinition.getClassName();
BaseService service = (BaseService)Class.forName(serviceClassName).newInstance();
HashMap arguments = new HashMap();
arguments.put("method", "selectContentListOnIdList");
List<Map> qualifyerList = new ArrayList<Map>();
Collection qualifyers = serviceBinding.getBindingQualifyers();
qualifyers = sortQualifyers(qualifyers);
Iterator iterator = qualifyers.iterator();
while(iterator.hasNext())
{
Qualifyer qualifyer = (Qualifyer)iterator.next();
Map argument = new HashMap();
argument.put(qualifyer.getName(), qualifyer.getValue());
qualifyerList.add(argument);
}
arguments.put("arguments", qualifyerList);
try
{
List contents = service.selectMatchingEntities(arguments, db);
if(contents != null)
{
Iterator i = contents.iterator();
while(i.hasNext())