restructuring to java ee dynamic web project