Fixed REST issue on wildfly.