class BBInputSetupMapperLayer {

    public RequestContext mapRequestContext(RequestDetails requestDetails) {
        RequestContext context = new RequestContext();
        if (null != requestDetails.getRequestInfo()) {
            modelMapper.map(requestDetails.getRequestInfo(), context);
        }
        org.onap.so.serviceinstancebeans.RequestParameters requestParameters = requestDetails.getRequestParameters();
        if (null != requestParameters) {
            context.setSubscriptionServiceType(requestParameters.getSubscriptionServiceType());
            context.setRequestParameters(this.mapRequestParameters(requestDetails.getRequestParameters()));
            context.setUserParams(this.mapNameValueUserParams(requestDetails.getRequestParameters()));
        }
        if (requestDetails.getConfigurationParameters() != null) {
            context.setConfigurationParameters(requestDetails.getConfigurationParameters());
        }
        return context;
    }

}