private void loadMappingElements() { ServerContext context = ETLgineServer.getInstance().getServerContext(); String syncTableConnectionName = context.getProperty(dpManagerKey + ".datapool.syncTables.connection"); try { Connection connection = JDBCUtil.openConnection(context, syncTableConnectionName); try { DimMappingElementDefDAO dao = new DimMappingElementDefDAO(connection); List<DimMappingElementDef> list = dao.listMappings(dimMapping.getKey()); for (DimMappingElementDef me : list) { me.setDimensionKey(dimMapping.getDimensionKey()); // for security... } mapEditor.setMappingList(list); } finally { connection.close(); } } catch (Exception e) { errInfo.showError(e); log.error("Error loading mapping elements", e); } }