return FtpLocationPanelFactory.newPanel((FtpLocation) loc, type);
case HTTP:
return HttpLocationPanelFactory.newPanel((HttpLocation) loc, type);
case JMS:
IntegrationProject project = ProjectUtils.getProject(locatable);
return new JmsLocationPanel(project, (JmsLocation) loc, type);
case LDAP:
return LdapLocationPanelFactory.newPanel((LdapLocation) loc, type);
default:
throw new RuntimeException("Unexpected location type: " + loc.getDataLocationType());
}