private static DefaultConnectionFactory createConnectionFactory(ExternalApiSupport eas,
String driverName,
WsConnectionParams wsConnParams,
String sourceGuidAsString,
String targetGuidAsString) throws ServerAccessException {
SourceId sourceGuid = null;
if (sourceGuidAsString != null) {
try {
sourceGuid = new SourceId(sourceGuidAsString);
} catch (Exception ex) {
throw new RuntimeException("Invalid source GUID: " + sourceGuidAsString);
}
}
TargetId targetGuid = null;