move from groovy to java dto