try
{
String type = repConf.getAttribute("type");
String repID = destination + type;
MailRepository reply = (MailRepository) repositories.get(repID);
if (reply != null) {
getLogger().debug("obtained repository: " + repID
+ "," + reply.getClass());
return (Component)reply;
} else {
String repClass = (String) classes.get( protocol + type );
getLogger().debug( "Need instance of " + repClass +