setting BRJS from rest API service to fix NPE