How To Use A Controller With Java