1. A method for adapting a .Net framework compliant reflection mechanism to a Java runtime environment, wherein said reflection mechanism discovering class information and invoking data members solely at runtime, said method comprising: gathering reflection related metadata from a .Net assembly class of a respective .Net class; generating a plurality of conversion methods, wherein each of the conversion methods enables the use of at least a reflection function defined in said .Net class by said Java run, time environment; generating an attributes class comprising at least said reflection related metadata and said plurality of conversion methods; and integrating said attributes class in a Java class file of said respective .Net class, such that said reflection mechanism is adapted as defined in the .Net framework to the Java environment; wherein the reflection functions are for retrieving information on a type data declaration; for creating an instance of a class and for invoking a data member of a class.