merged from trunk

svn path=/branches/proto/v4/libs/logic/; revision=49607