Coverts a trade model into java source