private static LdapConnectionInfo createConnectionInfo(ExternalApiSupport eas,
WsLdapConnectionParams connectionParams,
String sourceId,
String targetId) throws ServerAccessException, RemoteException {
LdapConnectionInfoFactory factory = new LdapConnectionInfoFactory();
LocationPasswordLookup pwdLookup = new LocationPasswordLookup(eas.getTranDbConnection());
pwdLookup.enableAccessControl(eas.getUser(), eas.getAccessController());
factory.setLocationPasswordLookup(pwdLookup);
return factory.createConnectionInfo(connectionParams, sourceId, targetId);
}