New attempt for java rest