I have certain EJB calls in my legacy application. however this is not exposed externally. For testing purposes I need to create a rest api that can expose this call. However this should not go to production. In spring we can activate a controller this based on spring profile. How can i do this in a EJB application.