1. A method for automatically providing for an unknown state in a user defined data structure implemented in a computer system, comprising: receiving a source code, said source code including at least one user defined data structure selectively set to one of a plurality of predefined data states associated therewith, and having a switch statement and an access function associated therewith; scanning said source code to detect said user defined data structure; identifying a switch statement referring to said detected data structure and an access function associated with said detected data structure in said source code; associating with said detected data structure an additional data state denoting the unknown state indicative of said detected data structure being maintained without one of said predefined data states; transforming said identified switch statement to include an additional branch corresponding to said additional data state; and, transforming said identified access function to allow compatibility with said detected data structure having said additional data state denoting the unknown state.