private IDataSource findDataSource(HttpSession session, String userId, String documentId,String requestConnectionName)
throws ConnectionDefinitionException {
logger.debug("IN");
if (documentId == null) {
logger.error("Document identifier NOT found. Returning null.");
throw new ConnectionParameterNotValidException("No default connection defined in "
+ "engine-config.xml file.");
}
DataSourceServiceProxy proxyDS = new DataSourceServiceProxy(userId, session);
IDataSource ds = null;
if (requestConnectionName!=null){