if (uri != null) {
host = uri.getHost();
port = uri.getPort();
}
ColorManager colorManager = ColorManager.getInstance();
Operation op = frame.getOperation();
String color = colorManager.getColor(op);
// for Non-URI based and special cases the host and port remain default
ExternalResourceDescriptor hashed =
new ExternalResourceDescriptor(frame, jdbcScheme + ":1:" + jdbcHash, "", ExternalResourceType.DATABASE.name(), jdbcScheme, host, port, color, false);
return Collections.singletonList(hashed);