method setErrorFormat() is removed from rest/java layer and default is json