class BBInputSetupMapperLayer {

    protected Map<String, Object> mapNameValueUserParams(
            org.onap.so.serviceinstancebeans.RequestParameters requestParameters) {
        Map<String, Object> userParamsResult = new HashMap<String, Object>();
        if (requestParameters.getUserParams() != null) {
            List<Map<String, Object>> userParams = requestParameters.getUserParams();
            for (Map<String, Object> userParamsMap : userParams) {
                if (userParamsMap.containsKey(USER_PARAM_NAME_KEY)
                        && (userParamsMap.get(USER_PARAM_NAME_KEY) instanceof String)
                        && userParamsMap.containsKey(USER_PARAM_VALUE_KEY)) {
                    userParamsResult.put((String) userParamsMap.get(USER_PARAM_NAME_KEY),
                            userParamsMap.get(USER_PARAM_VALUE_KEY));
                }
            }
        }
        return userParamsResult;
    }

}