1. A method for generating executable code for use at multiple locations in a client-server environment, comprising: generating first executable code in a first programming language based on common source code, wherein the first executable code is configured to execute at a server in the client-server environment; executing the first executable to produce relational objects that constitute a tree hierarchy, wherein a given relational object defines a relationship between nodes and end points in the common source code; and generating second executable code in a second programming language based on the tree hierarchy, wherein the second executable code is configured to execute at a client in the client-server environment; and wherein the second executable code implements a subset of the common source code associated with the relational objects which is based on a user context.