Java File for Flattening Transformation

These are the object used in the simple transformation.
Misc changes