@Override public List<Group> getGroupsWithAssignedExtSourceInVo(PerunSession sess, ExtSource source, Vo vo) throws InternalErrorException { try { return jdbc.query( "select " + groupMappingSelectQuery + " from group_ext_sources g_exts inner join groups on g_exts.group_id=groups.id " + " where g_exts.ext_source_id=? and groups.vo_id=?", GROUP_MAPPER, source.getId(), vo.getId()); } catch (RuntimeException e) { throw new InternalErrorException(e); } }