continue;
String hashString = MD5NameGenerator.getName(service);
String color = colorManager.getColor(op);
ExternalResourceType resType = ExternalResourceType.DATABASE;
if (service.indexOf("EmbeddedGraphDatabase") >= 0) {
resType = ExternalResourceType.FILESTORE;
}
int port = -1;
String host = "localhost";
String serviceUri = op.get("serviceUri", String.class);
if (!StringUtil.isEmpty(serviceUri)) {
try {
URI url = new URI(serviceUri);
host = url.getHost();
port = url.getPort();
} catch (URISyntaxException e) {
// invalid uri
}
}
ExternalResourceDescriptor descriptor =
new ExternalResourceDescriptor(cacheFrame, "server:" + hashString, service,
resType.name(), "Neo4J",
host, port, color, false);
queueDescriptors.add(descriptor);
}
return queueDescriptors;