String sql = "SELECT methodName, params, numinvokations FROM ServiceInvokationPermission " +
String sql = "SELECT methodName, params, numinvokations, methodImplementation FROM ServiceInvokationPermission " +
    public ServiceInvokationPermission getPermissions(int clientServiceSpaceId, String serviceName)            throws DAOException {        ServiceInvokationPermissionImpl permission = new ServiceInvokationPermissionImpl(clientServiceSpaceId, serviceName);        Connection con = null;        PreparedStatement stmt = null;        ResultSet rs = null;        try {            con = ds.getConnection();            String sql = "SELECT methodName, params, numinvokations FROM ServiceInvokationPermission " +                         "WHERE clientServiceSpaceId=? AND serviceName=?";            stmt = con.prepareStatement(sql);            stmt.setInt(1, clientServiceSpaceId);            stmt.setString(2, serviceName);            rs = stmt.executeQuery();            while (rs.next()) {                String methodName = rs.getString("methodName");                String params = rs.getString("params");                int numInvokations = rs.getInt("numinvokations");                MethodPermission mp = new MethodPermissionImpl(methodName, params, numInvokations);                permission.addMethodPermission(mp);            }        } catch (SQLException e) {            throw new DAOException(e);        } finally {            try {                if (rs != null) rs.close();                if (stmt != null) stmt.close();                if (con != null) con.close();            }            catch (SQLException e) { }        }        return permission;    }