{
JmsHostWrapper clone = new JmsHostWrapper();
if(! (proxy instanceof JmsHost)) return null;
JmsHost host = (JmsHost)proxy;
try{
clone.setHost(host.getHost());
clone.setPort(host.getPort());
clone.setName(host.getName());
clone.setAdminPassword(host.getAdminPassword());
clone.setAdminUserName(host.getAdminUserName());
}catch (PropertyVetoException e)
{
//todo : handle this exception
}