set the ClassDefinition when a TypeDeclaration is created from a Java class
[DROOLS-594] fix path mask initialization when a segment as an accumulate as last node