Java Controllers working with angular