gate embedded java updated

put things into objects